Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -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'
}
});
Loading