Fix Forgejo workflow context
All checks were successful
Build and deploy the book / book (push) Successful in 5s

This commit is contained in:
Simon 2026-08-20 09:57:17 +01:00
parent 9d85f39cfd
commit 2724f815fe

View file

@ -25,7 +25,7 @@ jobs:
test -f _book/index.html test -f _book/index.html
- name: Deploy successful main build - name: Deploy successful main build
if: forgejo.event_name == 'push' && forgejo.ref == 'refs/heads/main' if: github.ref == 'refs/heads/main'
env: env:
DEPLOY_KEY: ${{ secrets.EACOMPANION_DEPLOY_KEY }} DEPLOY_KEY: ${{ secrets.EACOMPANION_DEPLOY_KEY }}
run: | run: |
@ -33,4 +33,4 @@ jobs:
printf '%s\n' "$DEPLOY_KEY" > "$HOME/.ssh/id_ed25519" printf '%s\n' "$DEPLOY_KEY" > "$HOME/.ssh/id_ed25519"
chmod 0600 "$HOME/.ssh/id_ed25519" chmod 0600 "$HOME/.ssh/id_ed25519"
printf '%s\n' '[81.187.28.216]:12 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDKyA1+5/gU2P27AuDbk2SRNFeuumRP9pEicZc7zu51n' > "$HOME/.ssh/known_hosts" printf '%s\n' '[81.187.28.216]:12 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDKyA1+5/gU2P27AuDbk2SRNFeuumRP9pEicZc7zu51n' > "$HOME/.ssh/known_hosts"
tar -C _book -czf - . | ssh -p 12 eacompanion@81.187.28.216 "deploy ${{ forgejo.sha }}" tar -C _book -czf - . | ssh -p 12 eacompanion@81.187.28.216 "deploy ${{ github.sha }}"