Skip to content

Instantly share code, notes, and snippets.

@agustinustheo
Created November 6, 2022 04:54
Show Gist options
  • Save agustinustheo/0a06c4c4d866577050d5bd8d0907ffaa to your computer and use it in GitHub Desktop.
Save agustinustheo/0a06c4c4d866577050d5bd8d0907ffaa to your computer and use it in GitHub Desktop.
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/[email protected]
with:
cmd: bootstrap:ci # will run `yarn bootstrap:ci` command
- name: Deploy to Netlify
uses: nwtgck/[email protected]
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