Skip to content

Merge pull request #65 from KoheiKanagu/patch-1 #20

Merge pull request #65 from KoheiKanagu/patch-1

Merge pull request #65 from KoheiKanagu/patch-1 #20

name: github pages
on:
push:
branches:
- main
workflow_dispatch:
env:
HUGO_ENV: "production"
jobs:
deploy:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Update submodules
run: git submodule update --remote --recursive
- name: Setup Node.js
uses: actions/setup-node@v3
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.118.2'
extended: true
- name: Build
run: hugo --minify
- name: update CNAME
run: |
echo patterns.hattori.dev > ./public/CNAME
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
publish_dir: ./public/