This commit is contained in:
@@ -8,26 +8,12 @@ jobs:
|
||||
build:
|
||||
runs-on: self-hosted
|
||||
container:
|
||||
image: node:20-alpine
|
||||
image: hugomods/hugo:debian-nightly
|
||||
|
||||
steps:
|
||||
- name: Install Git
|
||||
run: apk add --no-cache git
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Install Hugo Extended
|
||||
run: |
|
||||
set -e
|
||||
apk add --no-cache wget tar rsync openssh
|
||||
wget -O sitegen.tar.gz https://github.com/gohugoio/hugo/releases/download/v0.152.2/hugo_extended_0.152.2_Linux-64bit.tar.gz
|
||||
tar -xzf sitegen.tar.gz
|
||||
mv hugo /usr/local/bin/sitegen
|
||||
ls -lah
|
||||
chmod +x /usr/local/bin/sitegen
|
||||
/usr/local/bin/sitegen version
|
||||
|
||||
- name: Build
|
||||
run: hugo --minify
|
||||
|
||||
|
||||
Reference in New Issue
Block a user