This commit is contained in:
parent
93f4d957d8
commit
12ff249b4f
1 changed files with 19 additions and 0 deletions
19
.forgejo/workflows/main.yaml
Normal file
19
.forgejo/workflows/main.yaml
Normal file
|
@ -0,0 +1,19 @@
|
|||
on: [push]
|
||||
env:
|
||||
HUGO_VERSION: 0.79.0
|
||||
jobs:
|
||||
build:
|
||||
runs-on: docker
|
||||
container:
|
||||
image: docker.io/node:20-alpine
|
||||
steps:
|
||||
- run: |
|
||||
apk add --no-cache wget ca-certificates git
|
||||
wget -O hugo.tar.gz https://github.com/gohugoio/hugo/releases/download/v${{ env.HUGO_VERSION }}}/hugo_${{ env.HUGO_VERSION }}_Linux-64bit.tar.gz
|
||||
tar xzf hugo.tar.gz hugo
|
||||
- uses: actions/checkout@v4
|
||||
- run: ./hugo --minify
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: public
|
||||
path: public/
|
Loading…
Reference in a new issue