summaryrefslogtreecommitdiffhomepage
path: root/.github/workflows/build.yml
blob: 955442a8aa72c0c053c4e633a4f46afb8ddaf535 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
name: Trigger site build

on:
  push:
    branches: [main, 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-site
          event-type: doc-update