Skip to content

Commit

Permalink
Go back to stopping the service before upgrading
Browse files Browse the repository at this point in the history
  • Loading branch information
itsjunetime committed Dec 3, 2023
1 parent fa5ca34 commit 65fabeb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,14 @@ jobs:
run: "cd frontend && trunk build --release"
- name: Optimise wasm
run: "cd frontend/dist && ../../binaryen-version_116/bin/wasm-opt -Oz -o opt.wasm $(ls frontend*.wasm) && mv ./opt.wasm $(ls frontend*.wasm)"
- name: Remove old files
- name: Stop currently-running backend
uses: appleboy/[email protected]
with:
host: ${{ secrets.SERVER_HOST }}
username: ${{ secrets.SERVER_USERNAME }}
key: ${{ secrets.SERVER_SSH_KEY }}
script: |
sudo /usr/bin/systemctl stop itsjunetime.service
rm /home/junkie/server_files/frontend* 2>/dev/null || :
- name: SCP files
uses: appleboy/[email protected]
Expand All @@ -63,5 +64,5 @@ jobs:
key: ${{ secrets.SERVER_SSH_KEY }}
script: |
sudo /usr/bin/systemctl daemon-reload
sudo /usr/bin/systemctl restart itsjunetime.service
sudo /usr/bin/systemctl start itsjunetime.service
sudo /usr/sbin/nginx -s reload

0 comments on commit 65fabeb

Please sign in to comment.