Merge pull request #35 from NwinNwin/dang-about-update-page #44
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: React CI | |
on: | |
push: | |
branches: | |
- "main" | |
env: | |
REACT_APP_API_KEY: ${{ secrets.REACT_APP_API_KEY }} | |
REACT_APP_AUTH_DOMAIN: ${{ secrets.REACT_APP_AUTH_DOMAIN }} | |
REACT_APP_PROJECT_ID: ${{ secrets.REACT_APP_PROJECT_ID }} | |
REACT_APP_STORAGE_BUCKET: ${{ secrets.REACT_APP_STORAGE_BUCKET }} | |
REACT_APP_MESSAGING_SENDER_ID: ${{ secrets.REACT_APP_MESSAGING_SENDER_ID }} | |
REACT_APP_APP_ID: ${{ secrets.REACT_APP_APP_ID }} | |
REACT_APP_MEASUREMENT_ID: ${{ secrets.REACT_APP_MEASUREMENT_ID }} | |
REACT_APP_AWS_BACKEND_URL: ${{ secrets.REACT_APP_AWS_BACKEND_URL }} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [16.x] | |
steps: | |
- uses: actions/checkout@v1 | |
- run: npm install | |
- run: npm run build | |
- uses: jakejarvis/s3-sync-action@master | |
with: | |
args: --acl public-read --follow-symlinks --delete | |
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-2" # optional: defaults to us-east-1 | |
SOURCE_DIR: "build" # optional: defaults to entire repository |