Skip to content

remove ankr rpc endpoint (#44) #34

remove ankr rpc endpoint (#44)

remove ankr rpc endpoint (#44) #34

Workflow file for this run

name: Deploy Web Pages
on:
push:
branches:
- "main"
jobs:
deploy:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Enable corepack
run: corepack enable
- name: Install dependency
run: yarn
- name: Browserslist update
run: npx browserslist@4.17.3 --update-db
- name: Build static webpages
run: yarn build
- name: Set AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ secrets.AWS_S3_REGION }}
- name: Deploy to S3
run: |
aws s3 sync --delete ./build/ s3://${{ secrets.AWS_S3_BUCKET_NAME }}/
- name: Flush cdn
run: |
aws cloudfront create-invalidation --distribution-id ${{ secrets.DISTRIBUTION_ID }} --paths '/*'