Skip to content

Commit 2fd5b0c

Browse files
authored
Update nuget version template
Signed-off-by: Victor Chang <[email protected]>
1 parent 867bded commit 2fd5b0c

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,10 +261,20 @@ jobs:
261261
sh -c "! grep 'has the following vulnerable packages' vulnerable.txt"
262262
working-directory: ./src
263263

264+
- name: Package (Official Release)
265+
env:
266+
PACKAGEDIR: '${{ github.workspace }}/release/'
267+
if: ${{ github.event.inputs.nuget && matrix.os == 'ubuntu-latest' }}
268+
run: |
269+
mkdir $PACKAGEDIR
270+
dotnet pack --no-build -c ${{ env.BUILD_CONFIG }} -o $PACKAGEDIR -p:PackageVersion=${{ steps.gitversion.outputs.majorMinorPatch }}
271+
ls -lR $PACKAGEDIR
272+
working-directory: ./src
273+
264274
- name: Package
265275
env:
266276
PACKAGEDIR: '${{ github.workspace }}/release/'
267-
if: ${{ matrix.os == 'ubuntu-latest' }}
277+
if: ${{ ! ( github.event.inputs.nuget ) && matrix.os == 'ubuntu-latest' }}
268278
run: |
269279
mkdir $PACKAGEDIR
270280
dotnet pack --no-build -c ${{ env.BUILD_CONFIG }} -o $PACKAGEDIR -p:PackageVersion=${{ steps.gitversion.outputs.majorMinorPatch }}-${{ steps.gitversion.outputs.EscapedBranchName }}.${{ steps.gitversion.outputs.CommitsSinceVersionSource }}

0 commit comments

Comments
 (0)