File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change 1- ---
21name : Deploy Hugo site to Pages
32on :
43 push :
@@ -17,9 +16,9 @@ defaults:
1716 shell : bash
1817jobs :
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
You can’t perform that action at this time.
0 commit comments