From 89dd3604e0e105b6a39fe6eba34df84e2209854d Mon Sep 17 00:00:00 2001 From: Ravencodess <115118888+Ravencodess@users.noreply.github.com> Date: Thu, 15 Aug 2024 14:16:47 +0100 Subject: [PATCH] Update anchor-deploy.yaml Signed-off-by: Ravencodess <115118888+Ravencodess@users.noreply.github.com> --- .github/workflows/anchor-deploy.yaml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/anchor-deploy.yaml b/.github/workflows/anchor-deploy.yaml index 706728db2..490435f49 100644 --- a/.github/workflows/anchor-deploy.yaml +++ b/.github/workflows/anchor-deploy.yaml @@ -22,20 +22,17 @@ jobs: github-token: ${{ secrets.GITHUB_TOKEN }} run-id: ${{ github.event.workflow_run.id }} name: boilerplate-build - path: boilerplate.tar.gz + path: . - name: Decode and create .env file 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