ericxliu-me/.gitea/workflows/publish.yaml
eric Liu c5f30e590d
All checks were successful
CI Hugo Publish / build-and-deploy (push) Successful in 12s
Update .gitea/workflows/publish.yaml
2024-06-13 02:33:02 +00:00

33 lines
749 B
YAML

name: CI Hugo Publish
on:
push:
branches:
- master
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: true # Fetch Hugo themes (true OR recursive)
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- name: Build site with Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: 'latest'
extended: true
- name: Build
run: hugo --minify
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
with:
personal_token: ${{ secrets.PERSONAL_TOKEN}}
publish_dir: ./public
publish_branch: gitea-pages