Skip to content

Commit d6682f2

Browse files
committed
Build Action
1 parent ab0cb47 commit d6682f2

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/build_and_publish.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,19 @@ jobs:
4646
run: gh release upload "${{ github.event.release.tag_name }}" "build.zip" --clobber
4747
env:
4848
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
49+
50+
# Send to the server
51+
- name: multiple command
52+
uses: appleboy/[email protected]
53+
with:
54+
host: ${{ secrets.SSH_HOST }}
55+
username: ${{ secrets.SSH_USERNAME }}
56+
key: ${{ secrets.SSH_PRIVATE_KEY }}
57+
script: |
58+
curl -L -o build.zip https://github.com/COMSOC-Community/pabuviz-web/releases/download/${{ github.event.release.tag_name }}/build.zip
59+
rm -rf web_old/*
60+
mv web/* web_old/
61+
mv build.zip web/
62+
cd web/
63+
unzip build.zip
64+
rm build.zip

0 commit comments

Comments
 (0)