Skip to content

Commit

Permalink
Update deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Simyon264 authored Feb 18, 2024
1 parent 7f9f7fd commit 3a21bb9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ jobs:
run: |
mkdir deploy
rsync -av --exclude='bin' --exclude='obj' --exclude='.git' --exclude='.github' ./ deploy/
echo "${{ env.DEPLOY_APPSETTINGS }}" | base64 -d > deploy/appsettings.Secret.json
- name: Upload to remote server
uses: appleboy/scp-action@master
Expand All @@ -48,7 +49,7 @@ jobs:

- name: Stop previous
run: |
ssh -o StrictHostKeyChecking=no -p ${{ secrets.SSH_PORT }} ${{ secrets.SSH_USER }}@${{ secrets.SERVER_IP }} "/home/${{ secrets.SSH_USER }}/LorePage/Kill.sh"
ssh -o StrictHostKeyChecking=no -p ${{ secrets.SSH_PORT }} ${{ secrets.SSH_USER }}@${{ secrets.SERVER_IP }} "pkill -f "dotnet run --project /home/${{ secrets.SSH_USER }}/LorePage/deploy/SU.LorePage/SU.LorePage.csproj"
- name: Start
run: |
ssh -o StrictHostKeyChecking=no -p ${{ secrets.SSH_PORT }} ${{ secrets.SSH_USER }}@${{ secrets.SERVER_IP }} "nohup dotnet run --project /home/${{ secrets.SSH_USER }}/LorePage/deploy/SU.LorePage/SU.LorePage.csproj > /home/${{ secrets.SSH_USER }}/LorePage/app.log 2>&1 &"

0 comments on commit 3a21bb9

Please sign in to comment.