Skip to content

Commit

Permalink
Add workflow to release packages
Browse files Browse the repository at this point in the history
  • Loading branch information
cYKatherine committed Mar 6, 2024
1 parent 23bdcce commit bd8799b
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 10 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/build-and-publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
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
- Snapshot
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@kcc-UID2-2329-add-dotnet-pipeline
with:
release_type: ${{ inputs.release_type }}
dotnet_version: ${{ inputs.dotnet_version }}
secrets: inherit
21 changes: 11 additions & 10 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 bd8799b

Please sign in to comment.