Skip to content

Commit

Permalink
test-deploy 27
Browse files Browse the repository at this point in the history
  • Loading branch information
yarobash committed Nov 21, 2024
1 parent 957f36e commit 6ce055c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/test-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,10 @@ jobs:
name: production-build
- name: Upload prod build to server
working-directory: ./scripts
run: |
pwd
ls
echo "$SERVER_NAME"
./copy2site.sh
uses: appleboy/[email protected]
with:
host: ${{ vars.SERVER_NAME }}
username: root
key: ${{ secrets.SERVER_SSH_KEY }}
port: 22
script_path: copy2site.sh
5 changes: 2 additions & 3 deletions scripts/copy2site.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/bin/sh

echo "Server name: $SERVER_NAME"
ssh root@${SERVER_NAME} rm -r /var/www/webface_test
ssh root@${SERVER_NAME} mkdir -p /var/www/webface_test
rm -r /var/www/webface_test
mkdir -p /var/www/webface_test

0 comments on commit 6ce055c

Please sign in to comment.