Skip to content

Commit

Permalink
Update anchor-deploy.yaml
Browse files Browse the repository at this point in the history
Signed-off-by: Ravencodess <[email protected]>
  • Loading branch information
Ravencodess authored Aug 15, 2024
1 parent 1012ce8 commit b838b70
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/anchor-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,14 @@ jobs:
run: |
echo ${{ secrets.ENV }} | base64 -d > .env.java
- name: Check directory contents
run: ls -la

- name: Copy Artifacts to server
run: |
sudo apt update && sudo apt install sshpass -y
sshpass -p ${{ secrets.PASSWORD }} scp -o StrictHostKeyChecking=no boilerplate.tar.gz .env.java ${{ secrets.USERNAME }}@${{ secrets.HOST }}:/tmp/
rm -f boilerplate.tar.gz .env
sshpass -p ${{ secrets.PASSWORD }} scp -o StrictHostKeyChecking=no ./boilerplate.tar.gz .env.java ${{ secrets.USERNAME }}@${{ secrets.HOST }}:/tmp/
rm -f ./boilerplate.tar.gz .env
- name: Deploy on server
uses: appleboy/ssh-action@master
Expand Down

0 comments on commit b838b70

Please sign in to comment.