Skip to content

Commit 85a11f9

Browse files
committed
update github pages workflow
1 parent 15afb87 commit 85a11f9

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/gh-pages.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ on:
88

99
jobs:
1010
deploy:
11-
runs-on: ubuntu-20.04
11+
runs-on: ubuntu-22.04
1212
concurrency:
1313
group: ${{ github.workflow }}-${{ github.ref }}
1414
steps:
15-
- uses: actions/checkout@v2
15+
- uses: actions/checkout@v4
1616
with:
1717
submodules: recursive # Fetch the Docsy theme
1818
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
@@ -24,12 +24,12 @@ jobs:
2424
extended: true
2525

2626
- name: Setup Node
27-
uses: actions/setup-node@v2
27+
uses: actions/setup-node@v3
2828
with:
2929
node-version: '14'
3030

3131
- name: Cache dependencies
32-
uses: actions/cache@v2
32+
uses: actions/cache@v4
3333
with:
3434
path: ~/.npm
3535
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
@@ -44,7 +44,7 @@ jobs:
4444
if: ${{ github.ref == 'refs/heads/master' }}
4545
with:
4646
github_token: ${{ secrets.GITHUB_TOKEN }}
47-
47+
publish_branch: gh-pages
4848
# - run: sed -i 's/https:\/\/xiaoping378.github.io/https:\/\/xiaoping378.gitee.io/' config.toml
4949
# - run: env HUGO_ENV="production" hugo --minify
5050
# - name: Deploy - gitee pages

0 commit comments

Comments
 (0)