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

30 lines
554 B
YAML
Raw Normal View History

2024-04-23 13:21:26 +00:00
name: github pages
on:
push:
branches:
2024-04-23 13:28:33 +00:00
- main
2024-04-23 13:21:26 +00:00
jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
- 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
2024-04-23 13:28:33 +00:00
publish_branch: gh-pages