fix warnings #2
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: Deploy | |
on: | |
push: | |
branches: [master] | |
jobs: | |
build: | |
name: Build & Deploy | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
- name: Install dependencies | |
run: npm install | |
# - name: Run tests | |
# run: npm test | |
- name: Build the app | |
run: npm run build | |
- name: Upload to S3 | |
run: | | |
aws configure set aws_access_key_id ${{ vars.AWS_GITHUB_ACCESS_KEY }} | |
aws configure set aws_secret_access_key ${{ secrets.AWS_GITHUB_ACCESS_SECRET }} | |
aws configure set default.region us-east-1 | |
aws s3 cp ./dist/tavis s3://${{ vars.AWS_S3_BUCKET }}/ --recursive --exclude "*.html" | |
aws s3 cp ./dist/tavis s3://${{ vars.AWS_S3_BUCKET }}/ --recursive --exclude "*" --include "*.html" --cache-control "public, must-revalidate, proxy-revalidate, max-age=0" |