Skip to content

Commit

Permalink
Fix/deploy.service (#265)
Browse files Browse the repository at this point in the history
* test fix

* test2

* test3
  • Loading branch information
KonstantinRaikhert authored and MikeWazowskyi committed Sep 3, 2023
1 parent 02be59a commit 59fee42
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/deploy-bot-on-stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,20 @@ jobs:
name: stage_deploy
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- 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/
- name: copy service file
uses: appleboy/scp-action@v0.1.4
with:
host: ${{ secrets.VM_HOST }}
username: ${{ secrets.VM_USER }}
password: ${{ secrets.VM_PASSWORD }}
port: 22
source: "./infra/dev/spread_wings_bot.service"
source: "deploy.tar"
target: /home/deploy/spread_wings_bot/infra/dev/
- name: ssh pull and start
uses: appleboy/ssh-action@master
Expand Down

0 comments on commit 59fee42

Please sign in to comment.