Skip to content

Commit 62d0887

Browse files
author
Sychevskyi Henadii
committed
ASUP-340
1 parent 14d214c commit 62d0887

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

.github/workflows/main.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,23 @@ jobs:
6161
name: csdocs
6262
path: ./csdocs.tar.gz
6363
if-no-files-found: error
64+
65+
- name: Publish
66+
uses: nogsantos/scp-deploy@master
67+
with:
68+
src: csdocs.tar.gz
69+
remote: /tmp/csdocs.tar.gz
70+
host: ${{ secrets.HOST_IP }}
71+
port: 22
72+
user: jelastic
73+
key: ${{ secrets.SSH_KEY }}
74+
75+
- name: Update
76+
uses: appleboy/ssh-action@v1.0.3
77+
with:
78+
host: ${{ secrets.HOST_IP }}
79+
username: jelastic
80+
key: ${{ secrets.SSH_KEY }}
81+
port: 22
82+
script: |
83+
rm -rf /tmp/public; mkdir -p /tmp/public; tar -xzf /tmp/csdocs.tar.gz -C /tmp/public/;

0 commit comments

Comments
 (0)