Skip to content

Commit 1f1941b

Browse files
author
ma.jinyun
committed
update ubuntu-latest
1 parent f11018c commit 1f1941b

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

.github/workflows/gp.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
---
21
name: Deploy Hugo site to Pages
32
on:
43
push:
@@ -17,9 +16,9 @@ defaults:
1716
shell: bash
1817
jobs:
1918
build:
20-
runs-on: ubuntu-latest
19+
runs-on: ubuntu-22.04 # 固定版本
2120
env:
22-
HUGO_VERSION: 0.99.0
21+
HUGO_VERSION: 0.125.0 # 更新 Hugo 版本
2322
steps:
2423
- name: Install Hugo CLI
2524
run: >
@@ -29,29 +28,29 @@ jobs:
2928
3029
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
3130
- name: Checkout
32-
uses: actions/checkout@v2
31+
uses: actions/checkout@v4 # 更新到 v4
3332
with:
3433
submodules: true
3534
fetch-depth: 0
3635
- name: Setup Pages
3736
id: pages
38-
uses: actions/configure-pages@v1
37+
uses: actions/configure-pages@v2 # 更新到 v2
3938
- name: Build with Hugo
4039
run: |
4140
hugo \
4241
--minify \
4342
--baseURL ${{ steps.pages.outputs.base_url }}
4443
- name: Upload artifact
45-
uses: actions/upload-pages-artifact@v1
44+
uses: actions/upload-pages-artifact@v2 #更新到 v2
4645
with:
4746
path: ./public
4847
deploy:
4948
environment:
5049
name: github-pages
5150
url: ${{ steps.deployment.outputs.page_url }}
52-
runs-on: ubuntu-latest
51+
runs-on: ubuntu-22.04
5352
needs: build
5453
steps:
5554
- name: Deploy to GitHub Pages
5655
id: deployment
57-
uses: actions/deploy-pages@v1
56+
uses: actions/deploy-pages@v2 # 更新到 v2

0 commit comments

Comments
 (0)