Skip to content

Commit f47534f

Browse files
committed
ci(github-actions): update gh-pages workflow config
1 parent bf78a5b commit f47534f

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

.github/workflows/gh-pages.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,21 @@ jobs:
225225
}
226226
env:
227227
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
228+
229+
- name: Update Release Hash
230+
run: |
231+
python scripts/update_release.py
232+
git config user.name "github-actions[bot]"
233+
git config user.email "github-actions[bot]@users.noreply.github.com"
234+
git add _config.yml
235+
git diff --cached --quiet || git commit -m "Update release hash"
236+
git push || {
237+
echo "Push failed, attempting pull and merge"
238+
git pull --rebase
239+
git push
240+
}
241+
env:
242+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
228243

229244
- name: Setup Pages
230245
uses: actions/configure-pages@v5

_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,4 @@ ssl_certificate: false
4949

5050
timezone: Asia/Shanghai
5151

52-
release: 33e95f52f35ec7a481508c3ebfab4b02cf4217e1
52+
release: bf78a5be52b66f8fb7d2877e7f78e5bb8fc115a8

0 commit comments

Comments
 (0)