Update .forgejo/workflows/deploy.yaml
Some checks are pending
deploy blog / deploy (push) Waiting to run

Signed-off-by: xengi <cccb-git@xengi.de>
This commit is contained in:
XenGi 2026-02-13 20:54:59 +01:00
parent 90a0a6e441
commit afd638d21b

View file

@ -19,28 +19,28 @@ jobs:
with: with:
go-version: 'stable' go-version: 'stable'
- run: go version - run: go version
- run: go install github.com/gohugoio/hugo@latest - run: go install github.com/gohugoio/hugo@latest
- uses: actions/setup-python@v6 - uses: actions/setup-python@v6
with: with:
python-version-file: '.python-version' python-version-file: '.python-version'
- run: python --version - run: python --version
- run: pip install -r requirements.txt - run: pip install -r requirements.txt
- name: Render site - name: Render site
run: ./build.sh run: ./build.sh
- name: Setup SSH key - name: Setup SSH key
run: | run: |
echo ${{ secrets.SSH_PRIVATE_KEY }} > id_ed25519 echo ${{ secrets.SSH_PRIVATE_KEY }} > id_ed25519
chmod 600 id_ed25519 chmod 600 id_ed25519
- name: Sync rendered site to staging - name: Sync rendered site to staging
if: forgejo.ref == 'refs/heads/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/ run: rsync -var -e 'ssh -i id_ed25519' ./public/ deploy@www.berlin.ccc.de:srv/http/www-staging/
continue-on-error: true continue-on-error: true
- name: Sync rendered site to production - name: Sync rendered site to production
if: forgejo.ref == 'refs/heads/production' if: forgejo.ref == 'refs/heads/production'
run: rsync -var -e 'ssh -i id_ed25519' ./public/ deploy@www.berlin.ccc.de:srv/http/www/ run: rsync -var -e 'ssh -i id_ed25519' ./public/ deploy@www.berlin.ccc.de:srv/http/www/
continue-on-error: true continue-on-error: true
- name: Cleanup - name: Cleanup
run: rm -rf id_ed25519 run: rm -rf id_ed25519