-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UID2-2329 Add workflow to release packages #29
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
bd8799b
Add workflow to release packages
cYKatherine d7ea48b
Add nuget api key
cYKatherine c7384be
Remove secrets.NUGET_API_KEY
cYKatherine 834c351
Add EOF for version.json
cYKatherine 3961757
Remove Snapshot version for release
cYKatherine 156f873
Add testing commit to build a different version
cYKatherine 41decfe
Revert previous change to generate another test commit
cYKatherine 8e9ffe7
Bump version to 5.4.7
cYKatherine f8be410
[CI Pipeline] Released Patch version: 5.4.8
3b7edc4
[CI Pipeline] Released Patch version: 5.4.9
5cbe6f7
Final cleanup for versions
cYKatherine File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Build and Publish JAR Packages | ||
run-name: ${{ inputs.release_type == 'Snapshot' && 'Publish pre-release' || format('Release {0}', inputs.release_type)}} Package by @${{ github.actor }} | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
release_type: | ||
type: choice | ||
description: The type of release | ||
options: | ||
- Major | ||
- Minor | ||
- Patch | ||
publish_vulnerabilities: | ||
type: string | ||
default: true | ||
dotnet_version: | ||
type: string | ||
default: 5.0 | ||
|
||
jobs: | ||
build-and-pubish: | ||
name: Build and publish JAR packages to Maven repository | ||
uses: IABTechLab/uid2-shared-actions/.github/workflows/shared-publish-to-nuget-versioned.yaml@v2 | ||
with: | ||
release_type: ${{ inputs.release_type }} | ||
dotnet_version: ${{ inputs.dotnet_version }} | ||
secrets: inherit |
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
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 |
---|---|---|
@@ -1,16 +1,17 @@ | ||
{ | ||
"$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json", | ||
"version": "2.0.2", | ||
"version": "5.4", | ||
"publicReleaseRefSpec": [ | ||
"^refs/heads/master$", | ||
"^refs/heads/release/v\\d+(?:\\.\\d+)?$" | ||
"^refs/heads/master$", | ||
"^refs/heads/v\\d+(?:\\.\\d+)?$" | ||
], | ||
"cloudBuild": { | ||
"buildNumber": { | ||
"enabled": true | ||
} | ||
}, | ||
"release": { | ||
"branchName": "release/v{version}" | ||
"setVersionVariables": true, | ||
"buildNumber": { | ||
"enabled": true, | ||
"includeCommitId": { | ||
"when": "always" | ||
} | ||
} | ||
} | ||
} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this just for dot net version for running to build the binary or does this correspond to some setting in the c# SDK repo?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or i just would like to know when should we modify this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At the moment this is used to build/package/test dotnet.
When we bump the version in the code, we can change this in the action interface.