Skip to content

Commit

Permalink
Update runner & hugo task
Browse files Browse the repository at this point in the history
  • Loading branch information
learn-more committed Dec 13, 2023
1 parent fa331f8 commit f6828b8
Showing 1 changed file with 30 additions and 32 deletions.
62 changes: 30 additions & 32 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,30 @@
name: github pages

on:
push:
branches:
- master

jobs:
build-deploy:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@master
with:
submodules: true

- name: Setup Hugo
uses: peaceiris/[email protected]
with:
hugo-version: '0.110.0'
# extended: true

- name: Build
run: hugo --minify

- name: Deploy
uses: docker://peaceiris/gh-pages:v2.5.0
env:
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: ./public
with:
emptyCommits: false
name: github pages

on:
push:
branches:
- master

jobs:
build-deploy:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
submodules: true

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

- name: Build
run: hugo --minify

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
publish_branch: gh-pages
publish_dir: ./public

0 comments on commit f6828b8

Please sign in to comment.