mirror of
https://github.com/rbreu/beeref.git
synced 2026-03-11 08:54:28 +00:00
Action to rebuild website on release
This commit is contained in:
parent
d9ebf934c7
commit
0c3ccb2703
1 changed files with 20 additions and 0 deletions
20
.github/workflows/update_website.yml
vendored
Normal file
20
.github/workflows/update_website.yml
vendored
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
name: Update Website
|
||||
|
||||
on:
|
||||
- workflow_dispatch
|
||||
- release:
|
||||
types: [published]
|
||||
|
||||
jobs:
|
||||
refresh:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Trigger GitHub pages rebuild
|
||||
run: |
|
||||
curl --fail --request POST \
|
||||
--url https://api.github.com/repos/${{ github.repository }}/pages/builds \
|
||||
--header "Authorization: Bearer $USER_TOKEN"
|
||||
env:
|
||||
# You must create a personal token with repo access as GitHub does
|
||||
# not yet support server-to-server page builds.
|
||||
USER_TOKEN: ${{ secrets.USER_TOKEN }}
|
||||
Loading…
Reference in a new issue