mirror of
https://github.com/greenshot/greenshot
synced 2025-08-22 06:23:24 -07:00
Try GH Pages API
This commit is contained in:
parent
e014f0fac1
commit
90fe0f5068
1 changed files with 5 additions and 7 deletions
12
.github/workflows/release.yml
vendored
12
.github/workflows/release.yml
vendored
|
@ -116,14 +116,12 @@ jobs:
|
|||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Rebuild GitHub Pages for new release
|
||||
- name: Trigger GitHub Pages rebuild
|
||||
run: |
|
||||
# Create a dummy commit to trigger rebuild
|
||||
git checkout gh-pages
|
||||
touch README.md
|
||||
git add README.md
|
||||
git commit -m "Trigger rebuild for v${{ steps.extract_version.outputs.version }}"
|
||||
git push origin gh-pages
|
||||
curl -X POST \
|
||||
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
|
||||
-H "Accept: application/vnd.github+json" \
|
||||
https://api.github.com/repos/${{ github.repository }}/pages/builds
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue