Skip to content

Commit

Permalink
Add optional step to deploy PRs to netlify
Browse files Browse the repository at this point in the history
  • Loading branch information
jcxldn committed Aug 3, 2023
1 parent d05578b commit 065580a
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,19 @@ jobs:
conclusion: neutral
output: |
{"title":"${{ steps.determineSize.outputs.SIZE }} (of 5M)","summary":"${{ steps.determineSize.outputs.SIZE }} (of 5M)"}
- name: Upload to netlify (if a PR build)
if: github.event_name == 'pull_request'
uses: nwtgck/[email protected]
with:
publish-dir: ./public
production-deploy: false
github-token: ${{ secrets.GITHUB_TOKEN }}
deploy-message: ${{ github.event.pull_request.title }})
enable-pull-request-comment: true
enable-commit-comment: false
enable-commit-status: true
overwrites-pull-request-comment: true
# replicate deploy preview prefix (ish)
alias: deploy-preview-pr-${{ github.event.pull_request.number }}
enable-github-deployment: false

0 comments on commit 065580a

Please sign in to comment.