Skip to content

Commit 3ab5cce

Browse files
authored
Update ci.yml
1 parent 1680b64 commit 3ab5cce

1 file changed

Lines changed: 14 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,20 @@ jobs:
124124
- name: Prepare package
125125
if: ${{ matrix.configuration == 'Release' }}
126126
run: >
127-
dotnet msbuild "${{ env.PUBLISH_PROJECT_PATH }}"
128-
-t:PublishAll
129-
-p:NoBuild=true
127+
dotnet publish "${{ env.PUBLISH_PROJECT_PATH }}" --no-buils
128+
-p:TargetFramework=netcoreapp3.1
129+
-p:Configuration=${{ matrix.configuration }}
130+
-p:BaseOutputPath="${{ env.OUTPUT_PATH }}"
131+
-p:PublishDir="${{ env.PUBLISH_PATH }}/$(Configuration)/$(TargetFramework)/"
132+
&&
133+
dotnet publish "${{ env.PUBLISH_PROJECT_PATH }}" --no-buils
134+
-p:TargetFramework=net6.0
135+
-p:Configuration=${{ matrix.configuration }}
136+
-p:BaseOutputPath="${{ env.OUTPUT_PATH }}"
137+
-p:PublishDir="${{ env.PUBLISH_PATH }}/$(Configuration)/$(TargetFramework)/"
138+
&&
139+
dotnet publish "${{ env.PUBLISH_PROJECT_PATH }}" --no-buils
140+
-p:TargetFramework=net8.0
130141
-p:Configuration=${{ matrix.configuration }}
131142
-p:BaseOutputPath="${{ env.OUTPUT_PATH }}"
132143
-p:PublishDir="${{ env.PUBLISH_PATH }}/$(Configuration)/$(TargetFramework)/"

0 commit comments

Comments
 (0)