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