Added gitea actions for hugo
All checks were successful
Build and deploy Hugo website / build-and-deploy (push) Successful in 9s
All checks were successful
Build and deploy Hugo website / build-and-deploy (push) Successful in 9s
This commit is contained in:
18
.gitea/workflows/hugo-build-deploy.yaml
Normal file
18
.gitea/workflows/hugo-build-deploy.yaml
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
name: Build and deploy Hugo website
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-and-deploy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Check out repository code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Install Hugo
|
||||||
|
uses: peaceiris/actions-hugo@v3
|
||||||
|
with:
|
||||||
|
hugo-version: '0.147.8'
|
||||||
|
- name: Build
|
||||||
|
run: hugo --minify
|
Reference in New Issue
Block a user