Skip to content

Commit 98ba18d

Browse files
authored
Update dotnet.yml
1 parent a1a4902 commit 98ba18d

File tree

1 file changed

+3
-16
lines changed

1 file changed

+3
-16
lines changed

.github/workflows/dotnet.yml

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ name: build
22

33
on:
44
push:
5-
branches:
6-
- main
75

86
env:
97
DOTNET_VERSION: "7.x.x" # The .NET SDK version to use
@@ -38,28 +36,17 @@ jobs:
3836
run: dotnet restore
3937
working-directory: Source/${{ env.SOLUTION_DIR }}
4038

41-
- name: Set version number
42-
run: ./Set-Version-Number.ps1 "1.${{github.run_number}}"
43-
working-directory: Scripts
44-
shell: pwsh
45-
4639
- name: Build
4740
run: dotnet build --configuration Release --no-restore
4841
working-directory: Source/${{ env.SOLUTION_DIR }}
4942

5043
- name: Test + Cover
51-
run: ./update-coverage.sh
44+
run: dotnet test
45+
working-directory: Source/${{ env.SOLUTION_DIR }}
5246

5347
- name: Publish
54-
run: dotnet publish ${{ env.PROJECT }} -c Release -o ${{matrix.OUTPUTDIR}} --self-contained true -r ${{matrix.RUNTIMEID}}
48+
run: dotnet publish ${{ env.PROJECT }} -c Release -o ${{matrix.OUTPUTDIR}} -p:PublishReadyToRun=true --self-contained true -p:PublishSingleFile=true -p:IncludeNativeLibrariesForSelfExtract=true -p:UseAppHost=true -r ${{matrix.RUNTIMEID}}
5549
working-directory: Source/${{ env.SOLUTION_DIR }}
56-
57-
- name: Delete PDB files (Windows)
58-
if: runner.os == 'Windows'
59-
working-directory: ./Source/${{ env.SOLUTION_DIR }}/${{matrix.OUTPUTDIR}}/
60-
run: Remove-Item -Path '*.pdb' -Force -Recurse
61-
shell: pwsh
62-
6350

6451
- uses: vimtor/action-zip@v1
6552
with:

0 commit comments

Comments
 (0)