Skip to content

Commit 35bcd85

Browse files
Update release.yml
1 parent ffe812b commit 35bcd85

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,12 @@ jobs:
1919
with:
2020
dotnet-version: '8.0.x'
2121

22+
# 1. Restore the solution (or both projects) for the target runtime
2223
- name: Restore dependencies
23-
run: dotnet restore OutSystems.NetChecksumUtils.UnitTests/OutSystems.NetChecksumUtils.UnitTests.csproj
24+
run: dotnet restore -r linux-x64
2425

2526
# --- THE GATEKEEPER: RUN TESTS ---
27+
2628
- name: Run Tests
2729
# If this fails, the workflow stops here and no release is created
2830
run: |
@@ -50,8 +52,14 @@ jobs:
5052
run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
5153

5254
- name: Publish App
53-
run: dotnet publish OutSystems.NetChecksumUtils/OutSystems.NetChecksumUtils.csproj -c Release -r linux-x64 --self-contained false -o ./publish --no-restore
54-
55+
run: |
56+
dotnet publish OutSystems.NetChecksumUtils/OutSystems.NetChecksumUtils.csproj \
57+
-c Release \
58+
-r linux-x64 \
59+
--self-contained false \
60+
--no-restore \
61+
-o ./publish
62+
5563
- name: Create Versioned Zip
5664
run: |
5765
cd ./publish

0 commit comments

Comments
 (0)