Skip to content

Commit 44d4a79

Browse files
ZhuoranYangclaude
andcommitted
fix: upgrade GitHub Actions to v4 and remove invalid input
- actions/checkout@v2 → v4 - peaceiris/actions-hugo@v2 → v3 - peaceiris/actions-gh-pages@v3 → v4 - Remove invalid allow_deploy_from_same_branch input Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 008c0c3 commit 44d4a79

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

.github/workflows/gh-pages.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,20 @@ name: Deploy to GitHub Pages
33
on:
44
push:
55
branches:
6-
- source # Trigger on changes to the source branch
6+
- source
77
workflow_dispatch:
88

99
jobs:
1010
build:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout source code
14-
uses: actions/checkout@v2
14+
uses: actions/checkout@v4
1515
with:
16-
ref: source # Check out the source branch
16+
ref: source
1717

1818
- name: Setup Hugo
19-
uses: peaceiris/actions-hugo@v2
19+
uses: peaceiris/actions-hugo@v3
2020
with:
2121
hugo-version: 'latest'
2222

@@ -27,9 +27,8 @@ jobs:
2727
run: touch ./public/.nojekyll
2828

2929
- name: Deploy to GitHub Pages
30-
uses: peaceiris/actions-gh-pages@v3
30+
uses: peaceiris/actions-gh-pages@v4
3131
with:
3232
personal_token: ${{ secrets.PERSONAL_TOKEN }}
3333
publish_dir: ./public
34-
publish_branch: main # Deploy built files to main branch
35-
allow_deploy_from_same_branch: true
34+
publish_branch: main

0 commit comments

Comments
 (0)