added goccy library #488
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-deploy | |
on: | |
push: | |
branches: | |
- master # Set a branch to deploy | |
env: | |
SITE_PATH: mysite | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/[email protected] | |
with: | |
submodules: true # Fetch Hugo themes (true OR recursive) | |
fetch-depth: 2 # Fetch all history for .GitInfo and .Lastmod | |
- name: setup hugo | |
uses: peaceiris/[email protected] | |
with: | |
hugo-version: 'latest' | |
extended: true | |
- name: update hugo modules | |
working-directory: ${{ env.SITE_PATH }} | |
run: hugo mod tidy | |
- name: setup node | |
uses: actions/[email protected] | |
with: | |
node-version: 18 | |
- name: install node modules | |
working-directory: ${{ env.SITE_PATH }} | |
run: | | |
hugo mod npm pack | |
npm install | |
- name: build | |
run: | | |
hugo --minify -s ${{ env.SITE_PATH }} -d ../public | |
- name: deploy | |
uses: peaceiris/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./public | |
publish_branch: gh-pages |