Skip to content

ci: use latest hugo, extended #3

ci: use latest hugo, extended

ci: use latest hugo, extended #3

name: GitHub Pages
on:
push:
branches:
- main
jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
submodules: true
- name: Install Ruby Dev
run: sudo apt-get install ruby-dev
- name: Install AsciiDoctor and Rouge
run: sudo gem install asciidoctor rouge
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: '0.119.0'
extended: true
- name: Build
run: hugo --mminify
- name: Deploy
uses: peaceiris/actions-gh-pages@v2
env:
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: ./public