Merge pull request #64 from gitstua/fix-image #18
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ |