Skip to content

Commit b7572aa

Browse files
authored
Merge pull request #68 from khoshov/feature/update-ui
update deploy script
2 parents 59dac7c + 289a741 commit b7572aa

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

.github/workflows/deploy_dev.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,20 @@ jobs:
5252
5353
echo "Deployment successful!"
5454
55+
- name: Prepare server (ensure tar & dir)
56+
uses: appleboy/ssh-action@v1.0.0
57+
with:
58+
host: ${{ secrets.DEV_SERVER_HOST }}
59+
username: ${{ secrets.DEV_SSH_USERNAME }}
60+
key: ${{ secrets.DEV_SSH_PRIVATE_KEY }}
61+
script: |
62+
command -v tar >/dev/null 2>&1 || ( \
63+
(command -v apt-get >/dev/null && sudo apt-get update && sudo apt-get install -y tar gzip) || \
64+
(command -v yum >/dev/null && sudo yum install -y tar gzip) || \
65+
(command -v apk >/dev/null && sudo apk add tar gzip) \
66+
)
67+
mkdir -p ${{ secrets.DEV_PROJECT_PATH }}/frontend/dist
68+
5569
- name: Copy static files to server
5670
uses: appleboy/scp-action@v0.1.7
5771
with:

0 commit comments

Comments
 (0)