ericxliu-me/.gitea/workflows/publish.yaml
eric Liu 39be3b9058
Some checks failed
Hugo Publish CI / build-and-deploy (push) Failing after 8s
Update .gitea/workflows/publish.yaml
2024-07-03 21:17:40 +00:00

34 lines
787 B
YAML

name: Hugo Publish CI
on:
push:
branches:
- master
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
persist-credentials: false
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:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
publish_dir: ./public
publish_branch: gitea-pages