Created
November 6, 2022 04:39
-
-
Save agustinustheo/ac68bcff4061aa9d0a693b397bf2f704 to your computer and use it in GitHub Desktop.
GH Actions to deploy React to Netlify
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 | |
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