From afd638d21b8466897d66a2f25723b8501bda8ea6 Mon Sep 17 00:00:00 2001 From: xengi Date: Fri, 13 Feb 2026 20:54:59 +0100 Subject: [PATCH] Update .forgejo/workflows/deploy.yaml Signed-off-by: xengi --- .forgejo/workflows/deploy.yaml | 36 +++++++++++++++++----------------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/.forgejo/workflows/deploy.yaml b/.forgejo/workflows/deploy.yaml index 313e980..a690ab4 100644 --- a/.forgejo/workflows/deploy.yaml +++ b/.forgejo/workflows/deploy.yaml @@ -19,28 +19,28 @@ jobs: with: go-version: 'stable' - run: go version - - run: go install github.com/gohugoio/hugo@latest + - run: go install github.com/gohugoio/hugo@latest - uses: actions/setup-python@v6 with: python-version-file: '.python-version' - run: python --version - - run: pip install -r requirements.txt + - run: pip install -r requirements.txt - - name: Render site - run: ./build.sh - - - name: Setup SSH key - run: | - echo ${{ secrets.SSH_PRIVATE_KEY }} > id_ed25519 - chmod 600 id_ed25519 - - name: Sync rendered site to staging - if: forgejo.ref == 'refs/heads/staging' - run: rsync -var -e 'ssh -i id_ed25519' ./public/ deploy@www.berlin.ccc.de:srv/http/www-staging/ - continue-on-error: true + - name: Render site + run: ./build.sh + + - name: Setup SSH key + run: | + echo ${{ secrets.SSH_PRIVATE_KEY }} > id_ed25519 + chmod 600 id_ed25519 + - name: Sync rendered site to staging + if: forgejo.ref == 'refs/heads/staging' + run: rsync -var -e 'ssh -i id_ed25519' ./public/ deploy@www.berlin.ccc.de:srv/http/www-staging/ + continue-on-error: true - name: Sync rendered site to production - if: forgejo.ref == 'refs/heads/production' - run: rsync -var -e 'ssh -i id_ed25519' ./public/ deploy@www.berlin.ccc.de:srv/http/www/ - continue-on-error: true - - name: Cleanup - run: rm -rf id_ed25519 + if: forgejo.ref == 'refs/heads/production' + run: rsync -var -e 'ssh -i id_ed25519' ./public/ deploy@www.berlin.ccc.de:srv/http/www/ + continue-on-error: true + - name: Cleanup + run: rm -rf id_ed25519