Skip to content

Instantly share code, notes, and snippets.

@agustinustheo
Created November 6, 2022 04:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save agustinustheo/ac68bcff4061aa9d0a693b397bf2f704 to your computer and use it in GitHub Desktop.
Save agustinustheo/ac68bcff4061aa9d0a693b397bf2f704 to your computer and use it in GitHub Desktop.
GH Actions to deploy React to Netlify
- 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