diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml new file mode 100644 index 0000000..5f6a5b3 --- /dev/null +++ b/.github/workflows/deploy.yaml @@ -0,0 +1,25 @@ +name: Trigger Pages Build + +on: + push: + branches: [ main ] + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - name: Trigger build in website repo + uses: actions/github-script@v9 + with: + github-token: ${{ secrets.PAT_TOKEN }} + script: | + await github.rest.repos.createDispatchEvent({ + owner: 'spark-hpi', + repo: 'website', + event_type: 'content-updated', + client_payload: { + content_repo: '${{ github.repository }}', + commit_sha: '${{ github.sha }}', + message: 'Content updated, triggering pages build' + } + });