Skip to content

Commit

Permalink
chore: update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
kaiiiz committed May 25, 2024
1 parent f6ee701 commit 4b9a1f3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,16 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: main
token: ${{ secrets.ACCESS_TOKEN }}
ssh-key: ${{ secrets.SSH_PRIVATE }}
token: ${{ secrets.GITHUB_TOKEN }}
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod

- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.115.4'
hugo-version: '0.120.0'
extended: true

- name: Setup public
Expand All @@ -32,10 +31,9 @@ jobs:
run: hugo -s exampleSite --baseURL https://kaiiiz.github.io/hugo-theme-monochrome --themesDir=../.. --minify --environment production

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.ACCESS_TOKEN }}
deploy_key: ${{ secrets.SSH_PRIVATE }}
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./exampleSite/public
publish_branch: gh-pages

3 changes: 1 addition & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ jobs:
- uses: actions/checkout@v3
with:
ref: dev
token: ${{ secrets.ACCESS_TOKEN }}
ssh-key: ${{ secrets.SSH_PRIVATE }}
token: ${{ secrets.GITHUB_TOKEN }}
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod

- name: Create Release
Expand Down

0 comments on commit 4b9a1f3

Please sign in to comment.