Skip to content

Commit e89b243

Browse files
committed
d
1 parent f7aeaf4 commit e89b243

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,6 @@ jobs:
3131
steps:
3232
- name: Checkout code
3333
uses: actions/checkout@v4.1.1
34-
- name: Copy infra files to server
35-
uses: appleboy/scp-action@master
36-
with:
37-
host: ${{ secrets.HOST }}
38-
username: ${{ secrets.USER }}
39-
key: ${{ secrets.SSH_KEY }}
40-
passphrase: ${{ secrets.PASSPHRASE }}
41-
source: "cppinfra/docker-compose.yml"
42-
target: ${{ secrets.DEPLOY_PATH }}
43-
overwrite: true
44-
strip_components: 1
4534

4635
- name: executing remote ssh commands to deploy
4736
uses: appleboy/ssh-action@master
@@ -51,7 +40,6 @@ jobs:
5140
key: ${{ secrets.SSH_KEY }}
5241
passphrase: ${{ secrets.PASSPHRASE }}
5342
script: |
54-
touch .env
5543
cd ${{ secrets.DEPLOY_PATH }}
5644
echo "BOT_TOKEN=${{ secrets.BOT_TOKEN }}" > .env
5745
echo POSTGRES_USER=${{ secrets.POSTGRES_USER }} >> .env
@@ -68,7 +56,7 @@ jobs:
6856
sudo docker compose up -d --build
6957
sudo docker system prune -af
7058
71-
59+
7260
send_message:
7361
runs-on: ubuntu-latest
7462
needs: deploy

0 commit comments

Comments
 (0)