Skip to content

Commit

Permalink
feat: add test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
clarkmcadoo committed Jan 30, 2024
1 parent 93807fe commit b0aceaa
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/trigger-netlify-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Trigger Netlify Build

on:
issue_comment:
types: [created]

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

steps:
if: contains(github.event.comment.body, 'netlify build')
- 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 b0aceaa

Please sign in to comment.