mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-07-02 04:47:01 +08:00
CI: Add a job to trigger rebuilding the website
When the changelog over here changes, the website would need to be rebuilt.
This commit is contained in:
15
.github/workflows/trigger_website.yml
vendored
Normal file
15
.github/workflows/trigger_website.yml
vendored
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
name: Trigger Website
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Dispatch Event to GitJournal.io
|
||||||
|
run: 'curl -X POST ''https://api.github.com/repos/GitJournal/gitjournal.io/actions/workflows/main.yaml/dispatches'' -u "vHanda:${{secrets.ACCESS_TOKEN_GITHUB}}" -H "Content-Type: application/json" --data ''{"ref": "master"}'''
|
||||||
|
env:
|
||||||
|
ACCESS_TOKEN_GITHUB: ${{ secrets.ACCESS_TOKEN_GITHUB }}
|
Reference in New Issue
Block a user