1
0
web/.github/workflows/gh-pages.yml

36 lines
758 B
YAML
Raw Normal View History

2024-04-05 08:44:02 +00:00
name: github pages
on:
push:
branches:
- main
jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
2024-04-05 08:46:22 +00:00
- uses: actions/checkout@v4
2024-04-05 08:44:02 +00:00
- name: Setup Hugo
2024-04-05 08:46:22 +00:00
uses: peaceiris/actions-hugo@v3
2024-04-05 08:44:02 +00:00
with:
hugo-version: 0.89.4
# extended: true
- name: Build
env:
TZ: "Asia/Tokyo"
run: |
hugo version
TZ=Asia/Tokyo hugo
touch ./public/.nojekyll
cp ./CNAME ./public/
- 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'