This commit is contained in:
parent
5afcbeb202
commit
11fbadf93f
1 changed files with 4 additions and 2 deletions
|
@ -1,13 +1,15 @@
|
||||||
steps:
|
steps:
|
||||||
build:
|
build:
|
||||||
image: golang:1.20-bookworm
|
image: golang:1.20-bookworm
|
||||||
|
environment:
|
||||||
|
- HUGO_VERSION=0.117.0
|
||||||
when:
|
when:
|
||||||
- event: push
|
- event: push
|
||||||
branch: [main, staging]
|
branch: [main, staging]
|
||||||
commands:
|
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
|
- hugo --minify --destination ./public
|
||||||
|
|
||||||
deploy-staging:
|
deploy-staging:
|
||||||
image: node:alpine
|
image: node:alpine
|
||||||
when:
|
when:
|
||||||
|
|
Loading…
Reference in a new issue