update build to install hugo

This commit is contained in:
2025-11-10 02:35:41 -03:00
parent dc190bb251
commit 2a8feb5839
+11 -4
View File
@@ -6,9 +6,9 @@ on:
jobs:
build:
runs-on: self-hosted
runs-on: self-hosted
container:
image: klakegg/hugo:ext-alpine
image: alpine:latest
steps:
- name: Checkout
@@ -16,12 +16,19 @@ jobs:
with:
submodules: true
- name: Install Hugo Extended
run: |
apk add --no-cache wget tar rsync openssh
wget https://github.com/gohugoio/hugo/releases/download/v0.146.0/hugo_extended_0.146.0_Linux-64bit.tar.gz
tar -xzf hugo_extended_0.146.0_Linux-64bit.tar.gz
mv hugo /usr/local/bin/hugo
hugo version
- name: Build
run: hugo --minify
- name: Deploy
run: |
apk add --no-cache rsync openssh
mkdir -p /root/.ssh
echo "$SSH_KEY" > /root/.ssh/id_ed25519
chmod 600 /root/.ssh/id_ed25519