-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update buildAndPublish.yml to include 'forRelease' input
- Loading branch information
1 parent
a032338
commit 9a5839a
Showing
3 changed files
with
9 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,10 @@ on: | |
description: 'NuGet feed URL' | ||
required: true | ||
type: string | ||
forRelease: | ||
description: 'Run for release?' | ||
required: true | ||
type: boolean | ||
secrets: | ||
feedAPIKey: | ||
description: 'NuGet feed API key' | ||
|
@@ -26,12 +30,12 @@ jobs: | |
uses: PaulHatch/[email protected] | ||
with: | ||
tag_prefix: '' | ||
version_format: '${major}.${minor}.${patch}-preview${increment}' | ||
version_format: "${major}.${minor}.${patch}${{ !inputs.forRelease && '-preview${increment}' || '' }}" | ||
search_commit_body: true | ||
debug: true | ||
|
||
- name: Output version | ||
run: echo "Version is ${{ steps.version.outputs.debug_output }}" | ||
run: echo "Version is ${{ toJSON(steps.version.outputs.debug_output) }}" | ||
|
||
- name: Setup dotnet ${{ env.DOTNET_VERSION }} | ||
uses: actions/setup-dotnet@v3 | ||
|
@@ -46,7 +50,7 @@ jobs: | |
|
||
- name: Upload dotnet test results | ||
uses: dorny/[email protected] | ||
if: always() | ||
if: ${{ !cancelled() }} | ||
with: | ||
name: .NET Tests | ||
path: '**/MGR.Guard.UnitTests.trx' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters