PARSING WORKS OML FUCK YEAH #18
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Automatically deploy to nest | |
on: [push] | |
jobs: | |
deploy-to-nest: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Connect to ssh, pull and systemctl restart | |
uses: appleboy/[email protected] | |
with: | |
host: hackclub.app | |
username: amber | |
key: ${{ secrets.KEY }} | |
port: 22 | |
script: | | |
: # Load nix binaries | |
export PATH=/home/amber/.nix-profile/bin:$PATH | |
export PATH=/nix/amber/nix/profiles/default/bin:$PATH | |
cd /home/amber/EventManager | |
git pull | |
systemctl --user restart eventmanager.service |