This commit is contained in:
parent
5afcbeb202
commit
11fbadf93f
1 changed files with 4 additions and 2 deletions
|
@ -1,13 +1,15 @@
|
|||
steps:
|
||||
build:
|
||||
image: golang:1.20-bookworm
|
||||
environment:
|
||||
- HUGO_VERSION=0.117.0
|
||||
when:
|
||||
- event: push
|
||||
branch: [main, staging]
|
||||
commands:
|
||||
- wget https://github.com/gohugoio/hugo/releases/download/v0.116.0/hugo_extended_0.116.0_linux-amd64.deb && apt install ./hugo_extended_0.116.0_linux-amd64.deb && rm -f hugo_extended_0.116.0_linux-amd64.deb
|
||||
- wget https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb && apt install ./hugo_extended_${HUGO_VERSION}_linux-amd64.deb && rm -f hugo_extended_${HUGO_VERSION}_linux-amd64.deb
|
||||
- hugo --minify --destination ./public
|
||||
|
||||
|
||||
deploy-staging:
|
||||
image: node:alpine
|
||||
when:
|
||||
|
|
Loading…
Reference in a new issue