Skip to content

Commit 4acb04b

Browse files
authored
Update build-and-deploy.yml
1 parent 3df591e commit 4acb04b

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

.github/workflows/build-and-deploy.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
run: dotnet restore ./downpatch.csproj
2626

2727
- name: Publish
28-
run: dotnet publish ./downpatch.csproj -c Release -o ./out --no-restore
28+
run: dotnet publish ./downpatch.csproj -c Release -o ./out -r linux-x64 --self-contained true /p:PublishSingleFile=false
2929

3030
- name: Configure SSH
3131
shell: bash
@@ -54,6 +54,5 @@ jobs:
5454
set -euo pipefail
5555
ln -sfn "/var/www/downpatch/releases/${RELEASE}" /var/www/downpatch/current
5656
57-
sudo -n /bin/systemctl restart downpatch.service
58-
sudo -n /bin/systemctl status downpatch.service --no-pager
57+
sudo -n /usr/bin/systemctl restart downpatch.service
5958
EOF

0 commit comments

Comments
 (0)