Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
12944qwerty authored Dec 12, 2024
1 parent 33a7178 commit 898cf37
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
ssh -i key -A -J ${{ vars.JUMP_USER }}@${{ vars.JUMP_HOST}} ${{ vars.SSH_USER }}@${{ vars.SSH_HOST }} '~/pros-website/deploy.sh'

0 comments on commit 898cf37

Please sign in to comment.