From 84556a615415a12d93161142028921650005ce2f Mon Sep 17 00:00:00 2001 From: Elena Shovtyuk <110084590+elenashovtyuk@users.noreply.github.com> Date: Sun, 3 Sep 2023 21:32:32 +0300 Subject: [PATCH] Feature/realize service for stage and prod (#269) * realize service for prod and stage * fix workflow * fix stage workflow --------- Co-authored-by: Konstantin Raikhert <69113745+KonstantinRaikhert@users.noreply.github.com> --- .github/workflows/deploy-bot-on-stage.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deploy-bot-on-stage.yml b/.github/workflows/deploy-bot-on-stage.yml index 35f251c7..4e386014 100644 --- a/.github/workflows/deploy-bot-on-stage.yml +++ b/.github/workflows/deploy-bot-on-stage.yml @@ -13,13 +13,12 @@ jobs: name: stage_deploy if: ${{ github.event.workflow_run.conclusion == 'success' }} steps: + - uses: actions/checkout@v2 - name: Run a multi-line script - # uses: actions/checkout@v2 run: | - mkdir ../spread_wings_bot/infra/dev/ - cp -TR . ../spread_wings_bot/infra/dev/ - tar -cvf deploy.tar ../spread_wings_bot/infra/dev/ - + mkdir ../build + cp -TR . ../build + tar -cvf deploy.tar ../build/ - name: copy service file uses: appleboy/scp-action@v0.1.4 with: @@ -27,7 +26,7 @@ jobs: username: ${{ secrets.VM_USER }} password: ${{ secrets.VM_PASSWORD }} source: "deploy.tar" - target: /home/deploy/spread_wings_bot/infra/dev/ + target: /spread_wings_bot/infra/dev/ - name: ssh pull and start uses: appleboy/ssh-action@master with: