We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 59dac7c + 289a741 commit b7572aaCopy full SHA for b7572aa
1 file changed
.github/workflows/deploy_dev.yml
@@ -52,6 +52,20 @@ jobs:
52
53
echo "Deployment successful!"
54
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
+
69
- name: Copy static files to server
70
uses: appleboy/scp-action@v0.1.7
71
with:
0 commit comments