From a79f2469b4ff952e433a0f414fa8fc07d25c35b4 Mon Sep 17 00:00:00 2001 From: PeaceNira Date: Sat, 1 Feb 2025 19:24:38 +0000 Subject: [PATCH] work. please. --- .forgejo/workflows/push.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/push.yaml b/.forgejo/workflows/push.yaml index 4a36523..85ad6b2 100644 --- a/.forgejo/workflows/push.yaml +++ b/.forgejo/workflows/push.yaml @@ -7,7 +7,7 @@ on: jobs: build: - runs-on: ubuntu-latest + runs-on: docker steps: # Step 1: Checkout the repository - uses: https://code.forgejo.org/actions/checkout@v4 @@ -15,9 +15,10 @@ jobs: # Step 2: Install latest Hugo - name: Install Hugo run: | + sudo apt-get update HUGO_VERSION=$(curl -s https://api.github.com/repos/gohugoio/hugo/releases/latest | grep -Po '"tag_name": "\K[^"]+') wget -q https://github.com/gohugoio/hugo/releases/download/${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_Linux-amd64.deb - dpkg -i hugo_extended_${HUGO_VERSION}_Linux-amd64.deb + sudo apt-get install ./hugo_extended_${HUGO_VERSION}_Linux-amd64.deb hugo version # Step 3: Ensure submodules or themes are initialized (only needed if your using github submodules for theme purposes)