Skip to content

Commit

Permalink
Merge pull request #1040 from newrelic/clark/add-workflow-netlify
Browse files Browse the repository at this point in the history
fix: update workflow
  • Loading branch information
clarkmcadoo authored Jan 30, 2024
2 parents bb1328f + 7603cce commit cc6f1d9
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/trigger-netlify-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,18 @@ on:
types: [created]

jobs:
trigger-netlify-build:
deploy-preview:
name: 'Deploy Preview'
runs-on: ubuntu-latest

steps:
- name: Trigger Netlify Build
env:
NETLIFY_BUILD_HOOK: ${{ secrets.NETLIFY_BUILD_HOOK }}
if: contains(github.event.comment.body, 'netlify build')
run: |
curl -X POST $NETLIFY_BUILD_HOOK
- name: deploy to preview mode
uses: thundermiracle/netlify-deploy@v3
with:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN}}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID}}
deploy-dir: "./public"
extra-cache-path: |
.cache
public

0 comments on commit cc6f1d9

Please sign in to comment.