summaryrefslogtreecommitdiffhomepage
path: root/.github
diff options
context:
space:
mode:
authorAdam Bard <adam@adambard.com>2024-04-06 11:39:27 -0700
committerAdam Bard <adam@adambard.com>2024-04-06 11:39:27 -0700
commita2c3935a9bca81410d325e26762aa93dbb5f8707 (patch)
treeeb4f4b587bf56d7a9dad26f3e96c395d572eb527 /.github
parent8c519ac0da420c6ce9cc364f957a5f9834061e77 (diff)
trigger site build on push
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build.yml17
1 files changed, 17 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
new file mode 100644
index 00000000..3d3e0465
--- /dev/null
+++ b/.github/workflows/build.yml
@@ -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