trigger site build on push

This commit is contained in:
Adam Bard 2024-04-06 11:39:27 -07:00
parent 8c519ac0da
commit a2c3935a9b

17
.github/workflows/build.yml vendored Normal file
View File

@ -0,0 +1,17 @@
name: Trigger site build
on:
push:
branches: [master]
jobs:
deploy:
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.repository_owner == 'adambard'
steps:
- name: Trigger site build
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.PAT_LEARNXINYMINUTES_SITE }}
repository: adambard/learnxinyminutes.com
event-type: doc-update