Skip to content

Commit 856956c

Browse files
committed
Update nuget release template
Signed-off-by: Victor Chang <[email protected]>
1 parent 2a30e6e commit 856956c

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,10 +226,21 @@ jobs:
226226
- name: Build Solution
227227
run: dotnet build -c ${{ env.BUILD_CONFIG }} --nologo ${{ env.SOLUTION }}
228228
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+
229240
- name: Package
230241
env:
231242
PACKAGEDIR: '${{ github.workspace }}/release/'
232-
if: ${{ matrix.os == 'ubuntu-latest' }}
243+
if: ${{ ! ( github.event.inputs.nuget ) && matrix.os == 'ubuntu-latest' }}
233244
run: |
234245
mkdir $PACKAGEDIR
235246
dotnet pack --no-build -c ${{ env.BUILD_CONFIG }} -o $PACKAGEDIR -p:PackageVersion=${{ steps.gitversion.outputs.majorMinorPatch }}-${{ steps.gitversion.outputs.EscapedBranchName }}.${{ steps.gitversion.outputs.CommitsSinceVersionSource }}

GitVersion.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ workflow: GitHubFlow/v1
55
assembly-versioning-scheme: MajorMinorPatchTag
66
assembly-file-versioning-scheme: MajorMinorPatchTag
77
mode: ContinuousDeployment
8+
strategies:
9+
- ConfiguredNextVersion
810
branches:
911
main:
1012
label: ''

0 commit comments

Comments
 (0)