Skip to content

Commit

Permalink
Update deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
minsoeaung committed Nov 20, 2023
1 parent 0939c35 commit 479e828
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
with:
files: 'API/appsettings.json'
env:
Psql.ConnectionString: ${{ secrets.PSQL_CONNECTIONSTRING }}
Psql.connectionString: ${{ secrets.PSQL_CONNECTIONSTRING }}
Jwt.Key: ${{ secrets.JWT_KEY }}
Jwt.Issuer: ${{ secrets.JWT_ISSUER }}

Expand All @@ -56,3 +56,13 @@ jobs:
source: "API/bin/Release/net7.0/publish/"
target: "/var/www/myaspnetcore/"
overwrite: true

- name: Restart server
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.LIGTHSAIL_IP }}
username: ${{ secrets.LIGTHSAIL_USERNAME }}
key: ${{ secrets.LIGTHSAIL_KEY }}
script: |
sudo systemctl restart myaspnetcore.service

0 comments on commit 479e828

Please sign in to comment.