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 Sep 3, 2023
1 parent bf6b887 commit 48380e1
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 48380e1

Please sign in to comment.