File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -226,10 +226,21 @@ jobs:
226
226
- name : Build Solution
227
227
run : dotnet build -c ${{ env.BUILD_CONFIG }} --nologo ${{ env.SOLUTION }}
228
228
working-directory : ./src
229
+
230
+ - name : Package (Official Release)
231
+ env :
232
+ PACKAGEDIR : ' ${{ github.workspace }}/release/'
233
+ if : ${{ github.event.inputs.nuget && matrix.os == 'ubuntu-latest' }}
234
+ run : |
235
+ mkdir $PACKAGEDIR
236
+ dotnet pack --no-build -c ${{ env.BUILD_CONFIG }} -o $PACKAGEDIR -p:PackageVersion=${{ steps.gitversion.outputs.majorMinorPatch }}
237
+ ls -lR $PACKAGEDIR
238
+ working-directory : ./src
239
+
229
240
- name : Package
230
241
env :
231
242
PACKAGEDIR : ' ${{ github.workspace }}/release/'
232
- if : ${{ matrix.os == 'ubuntu-latest' }}
243
+ if : ${{ ! ( github.event.inputs.nuget ) && matrix.os == 'ubuntu-latest' }}
233
244
run : |
234
245
mkdir $PACKAGEDIR
235
246
dotnet pack --no-build -c ${{ env.BUILD_CONFIG }} -o $PACKAGEDIR -p:PackageVersion=${{ steps.gitversion.outputs.majorMinorPatch }}-${{ steps.gitversion.outputs.EscapedBranchName }}.${{ steps.gitversion.outputs.CommitsSinceVersionSource }}
Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ workflow: GitHubFlow/v1
5
5
assembly-versioning-scheme : MajorMinorPatchTag
6
6
assembly-file-versioning-scheme : MajorMinorPatchTag
7
7
mode : ContinuousDeployment
8
+ strategies :
9
+ - ConfiguredNextVersion
8
10
branches :
9
11
main :
10
12
label : ' '
You can’t perform that action at this time.
0 commit comments