Skip to content

Commit

Permalink
Feature/realize service for stage and prod (#278)
Browse files Browse the repository at this point in the history
* fix stage workflow

* fix stage workflow

* fix stage workflow

* Fix stage workflow

* fix workflow

* fix stage workflow
  • Loading branch information
elenashovtyuk authored Sep 4, 2023
1 parent 94a501f commit 9258874
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/deploy-bot-on-stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@ jobs:
name: stage_deploy
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
# - uses: actions/checkout@v2
# - name: Prepare infra/dev
# run: |
# mkdir ../build
# cp -TR ./infra/dev ../build
# tar -cvf deploy.tar ../build/
- uses: actions/checkout@v2
- name: Prepare infra/dev
run: |
mkdir ../build
cp -TR ./infra/dev ../build
# tar -cvf deploy.tar ../build/
- name: copy infra/dev
uses: appleboy/scp-action@v0.1.4
with:
host: ${{ secrets.VM_HOST }}
username: ${{ secrets.VM_USER }}
password: ${{ secrets.VM_PASSWORD }}
source: infra/dev/*
source: ../build/
target: /home/deploy/spread_wings_bot/infra/dev/
- name: ssh pull and start
uses: appleboy/ssh-action@master
Expand Down

0 comments on commit 9258874

Please sign in to comment.