33 lines
672 B
YAML
33 lines
672 B
YAML
name: github pages
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
build-deploy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Setup Hugo
|
|
uses: peaceiris/actions-hugo@v3
|
|
with:
|
|
|
|
- name: Build
|
|
env:
|
|
TZ: "Asia/Tokyo"
|
|
run: |
|
|
hugo version
|
|
TZ=Asia/Tokyo hugo
|
|
touch ./public/.nojekyll
|
|
|
|
- name: Deploy
|
|
uses: peaceiris/actions-gh-pages@v3
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
publish_dir: ./public
|
|
publish_branch: gh-pages
|
|
user_name: 'ai[bot]'
|
|
user_email: '138105980+yui-syui-ai[bot]@users.noreply.github.com'
|