Skip to content

Commit

Permalink
fix gh-actions
Browse files Browse the repository at this point in the history
  • Loading branch information
tcarreira committed Jun 1, 2024
1 parent 5663196 commit ce429d2
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,22 @@ jobs:
submodules: true # Fetch Hugo themes (true OR recursive)
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "20.10"

- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
uses: peaceiris/actions-hugo@v3.0.0
with:
hugo-version: '0.74.3'
hugo-version: '0.126.1'
extended: true

- name: Install node modules
run: |
hugo mod npm pack
npm install
- name: Build
run: |
today=$(date +%Y-%m-%d)
Expand All @@ -42,7 +52,8 @@ jobs:
[ -f ./ALIAS ] && cp ./ALIAS ./public/ALIAS || true
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
uses: peaceiris/actions-gh-pages@v4.0.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: ./public

0 comments on commit ce429d2

Please sign in to comment.