Update push.yml
Some checks failed
Push changes to production / deploy (push) Failing after 8s

This commit is contained in:
2025-12-18 18:01:04 -06:00
parent d59390b7b1
commit 5d9d886776

View File

@@ -7,6 +7,9 @@ on:
tags:
- "v*"
env:
HUGO_VERSION: 0.152.2
jobs:
deploy:
runs-on: ubuntu-latest
@@ -23,10 +26,15 @@ jobs:
echo "${{ secrets.SSH_PRIV_KEY }}" > ~/.ssh/act
chmod 600 ~/.ssh/act
- name: Install HUGO
run: |
curl -sLJO "https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.tar.gz"
mkdir "${HOME}/.local/hugo"
tar -C "${HOME}/.local/hugo" -xf "hugo_extended_${HUGO_VERSION}_linux-amd64.tar.gz"
rm "hugo_extended_${HUGO_VERSION}_linux-amd64.tar.gz"
- name: Build HUGO Site
run: |
apt update
apt install -y hugo
hugo --gc --minify
- name: Push to server