Skip to content

Commit

Permalink
chore: update temp flow
Browse files Browse the repository at this point in the history
  • Loading branch information
stanleyyconsensys committed Jun 17, 2024
1 parent b7a7197 commit abe0164
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,13 @@ jobs:
yarn install --no-immutable
- name: Build Snap
run: |
PRE_VERSION="$VERSION"
npm --prefix ./packages/starknet-snap version --new-version "$PRE_VERSION" --no-git-tag-version --allow-same-version
npm --prefix ./packages/starknet-snap version --new-version "$VERSION" --no-git-tag-version --allow-same-version
yarn workspace @consensys/starknet-snap build
BUILD_VERSION=$(node -p "require('./packages/starknet-snap/package.json').version")
if [[ "$PRE_VERSION" != "$BUILD_VERSION" ]]; then
if [[ "$VERSION" != "$BUILD_VERSION" ]]; then
echo "Version mismatch"
exit 1
fi
Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/publish-dapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ jobs:
- name: Deploy to AWS
run: |
echo "Deployed Dapp to : $AWS_S3_URL"
aws s3 sync ./packages/wallet-ui/build "$AWS_S3_URL"
env:
AWS_S3_URL: ${{ secrets.AWS_S3_URL }}
- name: Invalid aws cloudfront cache
Expand All @@ -44,10 +43,6 @@ jobs:
echo "$AWS_CLOUDFRONT_DISTRIBUTIONS_ID" | tr ',' '\n' | while read -r DISTRIBUTIONS_ID
do
echo "Processing Distribution ID : $DISTRIBUTIONS_ID"
INVALIDATION_ID="$(aws cloudfront create-invalidation --distribution-id "$DISTRIBUTIONS_ID" --paths "/starknet/*" | grep Id | awk -F'"' '{ print $4}')"
echo "Waiting for invalidation $INVALIDATION_ID"
aws cloudfront wait invalidation-completed --id "$INVALIDATION_ID" --distribution-id "$DISTRIBUTIONS_ID"
echo "Invalidation $INVALIDATION_ID completed"
done
env:
AWS_CLOUDFRONT_DISTRIBUTIONS_ID: ${{ secrets.AWS_CLOUDFRONT_DISTRIBUTIONS_ID }}

0 comments on commit abe0164

Please sign in to comment.