zappyzep/.github/workflows/push-code.yml
laratheprotogen 46cdefbb21
Some checks failed
Code quality checks / build (18.16) (push) Has been cancelled
Push code / build (push) Successful in 3s
Update .github/workflows/push-code.yml
Signed-off-by: laratheprotogen <laraproto@proton.me>
2024-10-25 12:35:04 +00:00

18 lines
No EOL
478 B
YAML

name: Push code
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: install ssh keys
run: |
install -m 600 -D /dev/null ~/.ssh/id_ed25519
echo "${{ secrets.ZAPPYZEP_KEY }}" > ~/.ssh/id_ed25519
ssh-keyscan -H zappyzep.xyz > ~/.ssh/known_hosts
- name: connect and pull
run: ssh zappyzep@zappyzep.xyz "cd Zeppelin && git checkout working-commit && git pull && exit"
- name: cleanup
run: rm -rf ~/.ssh