Skip to content

Commit

Permalink
test-deploy 35
Browse files Browse the repository at this point in the history
  • Loading branch information
yarobash committed Nov 21, 2024
1 parent 9e7fa3d commit 42a6653
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/test-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,13 @@ jobs:
run: ls main
- name: Prepare folders on production server
uses: appleboy/[email protected]
with:
host: ${{ vars.SERVER_NAME }}
username: root
key: ${{ secrets.SERVER_SSH_KEY }}
port: 22
script_path: ./scripts/copy2site.sh
- name: Copy build to production server
uses: appleboy/[email protected]
with:
host: ${{ vars.SERVER_NAME }}
username: root
key: ${{ secrets.SERVER_SSH_KEY }}
port: 22
rm: true
source: main/*
target: /var/www/webface_test
target: /var/www/webface_test/
1 change: 0 additions & 1 deletion scripts/copy2site.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/bin/sh

rm -r /var/www/webface_test
mkdir -p /var/www/webface_test

0 comments on commit 42a6653

Please sign in to comment.