Merge pull request #154 from NFTX-project/vault-icon-8453-v3-19 #318
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Upload Website | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- uses: jakejarvis/s3-sync-action@master | |
with: | |
args: --acl public-read --follow-symlinks --delete --exclude '.git/*' | |
env: | |
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }} | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
AWS_REGION: 'us-east-1' # optional: defaults to us-east-1 | |
# SOURCE_DIR: 'public' # optional: defaults to entire repository | |
- name: Purge cache | |
uses: jakejarvis/cloudflare-purge-action@master | |
env: | |
# Zone is required by both authentication methods | |
CLOUDFLARE_ZONE: ${{ secrets.CF_ZONE_ID }} | |
CLOUDFLARE_TOKEN: ${{ secrets.CF_AUTH_KEY }} | |
PURGE_URLS: '["https://tokenlist.nftx.io", "https://assets.nftx.io/*"]' |