From 30fbc3730ae00e632a4f6aecbffc62bf955904f7 Mon Sep 17 00:00:00 2001 From: Adina Wagner Date: Tue, 2 Dec 2025 15:35:03 +0100 Subject: [PATCH 1/2] CI/TMP: document need to update paths --- .forgejo/workflows/deploy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/deploy.yml b/.forgejo/workflows/deploy.yml index c062776..6604b55 100644 --- a/.forgejo/workflows/deploy.yml +++ b/.forgejo/workflows/deploy.yml @@ -29,5 +29,5 @@ jobs: - name: Generate site run: hugo - - name: Deploy - run: mv public /www/www-draft.distribits.live && mv /www/www.distribits.live /www/old_www-draft.distribits.live; mv /www/www-draft.distribits.live /www/www.distribits.live; rm -rf /www/old_www-draft.distribits.live/ \ No newline at end of file + - name: Deploy BUT WHERETO? + run: mv public /www/www-draft.distribits.live && mv /www/www.distribits.live /www/old_www-draft.distribits.live; mv /www/www-draft.distribits.live /www/www.distribits.live; rm -rf /www/old_www-draft.distribits.live/ -- 2.54.1 From 17df729f47ba5a19496ae750260bba5b2331125b Mon Sep 17 00:00:00 2001 From: Adina Wagner Date: Tue, 2 Dec 2025 16:08:34 +0100 Subject: [PATCH 2/2] Make hugo-latest work, circumventing bash and hugo installations --- .forgejo/workflows/deploy.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.forgejo/workflows/deploy.yml b/.forgejo/workflows/deploy.yml index 6604b55..98c890c 100644 --- a/.forgejo/workflows/deploy.yml +++ b/.forgejo/workflows/deploy.yml @@ -1,5 +1,10 @@ name: Deploy on webserver +defaults: + run: + # hugo container only has `sh` + shell: sh + on: push: branches: @@ -8,7 +13,7 @@ on: jobs: deploy: name: Build site and deploy on success - runs-on: ubuntu-latest + runs-on: hugo-latest container: volumes: # for depositing the built site directly @@ -20,12 +25,6 @@ jobs: recursive: true get_content: . - - name: Setup Hugo - uses: https://github.com/peaceiris/actions-hugo@v3 - with: - hugo-version: '0.146.0' - extended: true - - name: Generate site run: hugo -- 2.54.1