Skip to content

Commit

Permalink
Update dotnet.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
petterannerwall authored Feb 23, 2022
1 parent ac76e5b commit 66fe060
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,27 @@ jobs:
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.x
- name: Dotnet Publish
- name: Publish
run: dotnet publish -c release -r ubuntu.18.04-x64 -o deploy
- name: Copy via ssh
- name: Stop service
uses: garygrossgarten/github-action-ssh@v0.3.0
with:
command: sudo systemctl stop exilence-next.service
host: ${{ secrets.HOST }}
username: ${{ secrets.USER }}
password: ${{ secrets.SECRET }}
- name: Copy files
uses: garygrossgarten/github-action-scp@v0.5.3
with:
local: /home/runner/work/exilence-next/exilence-next/ExilenceNextBackend/deploy
remote: ${{ secrets.TARGET }}
host: ${{ secrets.HOST }}
username: ${{ secrets.USER }}
password: ${{ secrets.SECRET }}
- name: Run SSH command
- name: Start service
uses: garygrossgarten/github-action-ssh@v0.3.0
with:
command: sudo systemctl restart exilence-next.service
command: sudo systemctl start exilence-next.service
host: ${{ secrets.HOST }}
username: ${{ secrets.USER }}
password: ${{ secrets.SECRET }}
Expand Down

0 comments on commit 66fe060

Please sign in to comment.