26 lines
No EOL
545 B
YAML
26 lines
No EOL
545 B
YAML
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: docker
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
submodules: true
|
|
fetch-depth: 0
|
|
- name: Setup Go
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version: '1.22.4'
|
|
- name: Setup Hugo
|
|
uses: https://github.com/peaceiris/actions-hugo@v3
|
|
with:
|
|
hugo-version: 'latest'
|
|
- name: build
|
|
run: hugo --minify
|
|
- name: push public
|
|
run: |
|
|
cp -rf public/* /sitestatic |