From 24b0cb7df637fcddcf96ce70aa5200e9d37e0dec Mon Sep 17 00:00:00 2001 From: Andras Schmelczer Date: Sat, 6 Jun 2026 14:58:34 +0100 Subject: [PATCH] Adopt shared ci-actions for publishing Replace the inline publish step(s) with the canonical shell-only composite actions in andras/ci-actions (deploy-pages / docker-publish / forgejo-release). Co-Authored-By: Claude Opus 4.8 (1M context) --- .forgejo/workflows/deploy.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.forgejo/workflows/deploy.yml b/.forgejo/workflows/deploy.yml index 7d0a19c..b1135b8 100644 --- a/.forgejo/workflows/deploy.yml +++ b/.forgejo/workflows/deploy.yml @@ -19,10 +19,15 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Copy files to nginx pages mount + - name: Stage static files if: github.event_name == 'push' && github.ref == 'refs/heads/main' run: | - apt update && apt install -y rsync - deploy_dir="$(mktemp -d)" - cp -R index.html css js "$deploy_dir"/ - rsync -a --delete --mkpath --chmod=ugo=rwx "$deploy_dir"/ /pages/avoid/ + mkdir -p _site + cp -R index.html css js _site/ + + - name: Deploy to nginx pages mount + if: github.event_name == 'push' && github.ref == 'refs/heads/main' + uses: http://forgejo:3000/andras/ci-actions/deploy-pages@main + with: + source: _site + target: avoid