From 898cf37a69fb4435e7feb61020d9b18a9738af58 Mon Sep 17 00:00:00 2001 From: 12944qwerty Date: Thu, 12 Dec 2024 12:47:11 -0600 Subject: [PATCH] Update release.yml --- .github/workflows/release.yml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a632c78c..c46cb79f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -28,17 +28,16 @@ jobs: tar -czf ../pros-docs.tar.gz * cd .. + # Because PurdueCS only allows access to legion on campus we have to do some port forwarding through a jumphost. + # The jumphost has been set up on a student's data server. Only the vars.SSH_USER has to be updated when needed here. - name: Send Artifact to Server - uses: betanzos/scp-upload@v1 - with: - source: pros-docs.tar.gz - host: ${{ vars.SSH_HOST }} - username: ${{ vars.SSH_USER }} - key: ${{ secrets.SSH_KEY }} - remote_dir: ~/pros-website + run: | + echo "${{ secrets.SSH_KEY }}" > key + chmod 400 key + scp -i key -A -J ${{ vars.JUMP_USER }}@${{ vars.JUMP_HOST}} pros-docs.tar.gz ${{ vars.SSH_USER }}@${{ vars.SSH_HOST }}:~/pros-website - name: Deploy! run: | echo "${{ secrets.SSH_KEY }}" > key chmod 400 key - ssh -o StrictHostKeyChecking=no -i key ${{ vars.SSH_USER }}@${{ vars.SSH_HOST }} '~/pros-website/deploy.sh' \ No newline at end of file + ssh -i key -A -J ${{ vars.JUMP_USER }}@${{ vars.JUMP_HOST}} ${{ vars.SSH_USER }}@${{ vars.SSH_HOST }} '~/pros-website/deploy.sh'