diff --git a/.github/workflows/build-deploy.yml b/.github/workflows/build-deploy.yml index 6766e0d..15b8eb6 100644 --- a/.github/workflows/build-deploy.yml +++ b/.github/workflows/build-deploy.yml @@ -40,8 +40,6 @@ jobs: deploy: runs-on: ubuntu-latest needs: build - env: - USER_NAME: ${{ secrets.SSH_USER }} steps: - uses: actions/checkout@v4 - name: Write SSH Keys @@ -58,12 +56,12 @@ jobs: name: one-night-${{ github.sha }} - name: Copy build files run: | - sftp $USER_NAME:${{ secrets.SSH_HOST }} <<< ' + sftp ${{ secrets.SSH_USER }}:${{ secrets.SSH_HOST }} <<< ' put one-night.tar ' - name: Start Server run: | - ssh $USER_NAME:${{ secrets.SSH_HOST }} <<< ' + ssh ${{ secrets.SSH_USER }}:${{ secrets.SSH_HOST }} <<< ' tar -xf one-night.tar cd server nohup ./zig-out/bin/zig-server > logs.out &