Skip to content

Commit

Permalink
Change github action
Browse files Browse the repository at this point in the history
  • Loading branch information
Killarexe committed Dec 11, 2024
1 parent 2921927 commit a206779
Showing 1 changed file with 9 additions and 15 deletions.
24 changes: 9 additions & 15 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,12 @@ jobs:
submodules: true
fetch-depth: 0

- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: "latest"

- name: Build
run: hugo --minify

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/main' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: ./public
- name: Deploy the site
uses: benmatselby/hugo-deploy-gh-pages@main
env:
HUGO_VERSION: 0.88.0
TARGET_REPO: Killarexe/killarexe.github.io
TARGET_BRANCH: master
TOKEN: ${{ secrets.TOKEN }}
HUGO_ARGS: ''
CNAME: killarexe.github.io

0 comments on commit a206779

Please sign in to comment.