parent
7e0923678b
commit
ec05481d64
1 changed files with 23 additions and 3 deletions
|
|
@ -1,6 +1,26 @@
|
||||||
on: [push]
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
deploy:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
steps:
|
steps:
|
||||||
- run: echo All good! Show Green
|
- 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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue