Fix Forgejo workflow context
All checks were successful
Build and deploy the book / book (push) Successful in 5s
All checks were successful
Build and deploy the book / book (push) Successful in 5s
This commit is contained in:
parent
9d85f39cfd
commit
2724f815fe
1 changed files with 2 additions and 2 deletions
|
|
@ -25,7 +25,7 @@ jobs:
|
|||
test -f _book/index.html
|
||||
|
||||
- name: Deploy successful main build
|
||||
if: forgejo.event_name == 'push' && forgejo.ref == 'refs/heads/main'
|
||||
if: github.ref == 'refs/heads/main'
|
||||
env:
|
||||
DEPLOY_KEY: ${{ secrets.EACOMPANION_DEPLOY_KEY }}
|
||||
run: |
|
||||
|
|
@ -33,4 +33,4 @@ jobs:
|
|||
printf '%s\n' "$DEPLOY_KEY" > "$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"
|
||||
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 }}"
|
||||
|
|
|
|||
Loading…
Reference in a new issue