Skip to content

Commit

Permalink
Merge pull request #9 from IABTechLab/kcc-UID2-2327-update-maven-repo…
Browse files Browse the repository at this point in the history
…s-to-use-new-pipelines

Add build and publish pipeline
  • Loading branch information
cYKatherine authored Dec 18, 2023
2 parents bdf37e7 + 2ccb39b commit 3ad7ed4
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/build-and-publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Build and Publish JAR Packages
on:
workflow_dispatch:
inputs:
release_type:
type: choice
description: 'The type of release'
options:
- Major
- Minor
- Patch
- Snapshot
publish_to_maven:
description: 'True to publish the artifacts to Maven repository, false to skip the step'
default: false
required: false
type: boolean
java_version:
type: string
default: '11'
publish_vulnerabilities:
type: string
default: 'true'

jobs:
build-and-pubish:
name: Build and publish JAR packages to Maven repository
uses: IABTechLab/uid2-shared-actions/.github/workflows/[email protected]
with:
release_type: ${{ inputs.release_type }}
publish_to_maven: ${{ inputs.publish_to_maven }}
java_version: ${{ inputs.java_version }}
publish_vulnerabilities: ${{ inputs.publish_vulnerabilities }}
secrets: inherit

0 comments on commit 3ad7ed4

Please sign in to comment.