Merge pull request #57 from manh-t/release/0.3.0 #9
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 to Netlify | |
on: | |
push: | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
deploy: | |
name: Build and Deploy to Netlify | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/[email protected] | |
- name: Install modules | |
run: npm ci | |
- name: Build | |
run: npm run build | |
env: | |
REACT_APP_API_BASE_URL: ${{ secrets.REACT_APP_API_BASE_URL }} | |
REACT_APP_CLIENT_ID: ${{ secrets.REACT_APP_CLIENT_ID }} | |
REACT_APP_CLIENT_SECRET: ${{ secrets.REACT_APP_CLIENT_SECRET }} | |
- name: Deploy to Netlify | |
uses: nwtgck/[email protected] | |
timeout-minutes: 5 | |
with: | |
publish-dir: './build' | |
deploy-message: 'Deploy from GitHub Actions' | |
production-deploy: true | |
github-token: ${{ secrets.PERSONAL_GITHUB_TOKEN }} | |
enable-commit-comment: false | |
env: | |
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} | |
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} |