work. please.
Some checks failed
On_Push / build (push) Failing after 13s

This commit is contained in:
PeaceNira 2025-02-01 19:24:38 +00:00
parent 6eb2a2c8d1
commit a79f2469b4

View file

@ -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)