diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 823ac1d..a8cbb66 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -68,10 +68,12 @@ jobs: env: SSH_USER: ${{ secrets.SSH_USER }} SSH_HOST: ${{ secrets.SSH_HOST }} - SSH_KEY: ${{ secrest.SSH_KEY }} + SSH_KEY: ${{ secrets.SSH_KEY }} - name: Extract tarball on production host run: ssh staging tar xzvf "$SSH_DIR/hkgi-new.tar.gz" -C "$SSH_DIR" + env: + SSH_DIR: ${{ secrets.SSH_DIR }} - name: Restart service on production host run: ssh staging /usr/bin/sudo /usr/bin/systemctl restart hkgi