Skip to content

Commit

Permalink
upgrade github workflows actions
Browse files Browse the repository at this point in the history
  • Loading branch information
liyang committed Nov 13, 2024
1 parent 36cceeb commit 1045ce2
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ jobs:
- name: Install Dart Sass
run: sudo snap install dart-sass
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v4.2.2
with:
submodules: recursive
fetch-depth: 0
- name: Setup Pages
id: pages
uses: actions/configure-pages@v5
uses: actions/configure-pages@v5.0.0
- name: Install Node.js dependencies
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
- name: Build with Hugo
Expand All @@ -58,7 +58,7 @@ jobs:
--minify \
--baseURL "${{ steps.pages.outputs.base_url }}/"
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
uses: actions/upload-pages-artifact@v3.0.1
with:
path: ./public

Expand All @@ -71,4 +71,4 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
uses: actions/deploy-pages@v4.0.5
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"files.exclude": {
"**/.git": false
}
}
7 changes: 6 additions & 1 deletion config/_default/menus.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,9 @@ weight = 40
[[main]]
name = "HUGO"
url = "https://gohugo.io" # 外部链接用URL,内部链接用pageRef
weight = 50
weight = 50
[[main]]
name = 'JANE'
parent = 'HUGO'
url = "https://github.com/xianmin/hugo-theme-jane"
weight = 20

0 comments on commit 1045ce2

Please sign in to comment.