Skip to content

Commit

Permalink
Build Action
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon-Rey committed Nov 8, 2024
1 parent ab0cb47 commit d6682f2
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/build_and_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,19 @@ jobs:
run: gh release upload "${{ github.event.release.tag_name }}" "build.zip" --clobber
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# Send to the server
- name: multiple command
uses: appleboy/ssh-action@v1.1.0
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USERNAME }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
script: |
curl -L -o build.zip https://github.com/COMSOC-Community/pabuviz-web/releases/download/${{ github.event.release.tag_name }}/build.zip
rm -rf web_old/*
mv web/* web_old/
mv build.zip web/
cd web/
unzip build.zip
rm build.zip

0 comments on commit d6682f2

Please sign in to comment.