Skip to content

Commit

Permalink
Merge pull request #29 from IABTechLab/kcc-UID2-2329-add-dotnet-pipeline
Browse files Browse the repository at this point in the history
UID2-2329 Add workflow to release packages
  • Loading branch information
cYKatherine authored Mar 8, 2024
2 parents 23bdcce + 5cbe6f7 commit 7645c78
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 11 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/build-and-publish.yaml
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
2 changes: 1 addition & 1 deletion UID2.Client.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package>
<metadata>
<id>UID2.Client</id>
<version>5.4.0</version>
<version>5.4.9</version>
<title>UID2 Client C# SDK</title>
<authors>UID2 team</authors>
<owners>UID2 team</owners>
Expand Down
2 changes: 1 addition & 1 deletion src/UID2.Client/UID2Client.cs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public async Task<RefreshResponse> RefreshAsync(CancellationToken token)

private string GetAssemblyNameAndVersion()
{
var version = "5.4.0";
var version = "5.4.9";
return "uid-client-net-" + version;
}

Expand Down
19 changes: 10 additions & 9 deletions version.json
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"
}
}
}
}

0 comments on commit 7645c78

Please sign in to comment.