Created
November 6, 2022 04:54
-
-
Save agustinustheo/0a06c4c4d866577050d5bd8d0907ffaa to your computer and use it in GitHub Desktop.
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: CI/CD Deploy Netlify Webapp | |
on: | |
push: | |
branches: [ main ] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Monorepo Code | |
uses: actions/checkout@v2 | |
- name: Yarn Bootstrap | |
uses: borales/actions-yarn@v3.0.0 | |
with: | |
cmd: bootstrap:ci # will run `yarn bootstrap:ci` command | |
- name: Deploy to Netlify | |
uses: nwtgck/actions-netlify@v1.1 | |
with: | |
publish-dir: './packages/react-webapp/build' | |
production-branch: main | |
github-token: ${{ secrets.MY_GITHUB_SECRET }} | |
deploy-message: "Deploy from GitHub Actions" | |
enable-pull-request-comment: false | |
enable-commit-comment: true | |
overwrites-pull-request-comment: true | |
env: | |
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} | |
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} | |
timeout-minutes: 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment