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:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Rebuild GitHub Pages for new release
|
- name: Trigger GitHub Pages rebuild
|
||||||
run: |
|
run: |
|
||||||
# Create a dummy commit to trigger rebuild
|
curl -X POST \
|
||||||
git checkout gh-pages
|
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
|
||||||
touch README.md
|
-H "Accept: application/vnd.github+json" \
|
||||||
git add README.md
|
https://api.github.com/repos/${{ github.repository }}/pages/builds
|
||||||
git commit -m "Trigger rebuild for v${{ steps.extract_version.outputs.version }}"
|
|
||||||
git push origin gh-pages
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue