diff --git a/.github/workflows/build-and-publish.yaml b/.github/workflows/build-and-publish.yaml new file mode 100644 index 0000000..3489adf --- /dev/null +++ b/.github/workflows/build-and-publish.yaml @@ -0,0 +1,24 @@ +name: Build and Publish Pypi Packages +run-name: ${{ 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 + pull_request: + +jobs: + build-and-pubish: + name: Build and publish Python packages to Pypi + uses: IABTechLab/uid2-shared-actions/.github/workflows/shared-publish-to-pypi-versioned.yaml@kcc-UID2-2330-create-workflow-for-python + with: + release_type: ${{ inputs.release_type }} + secrets: inherit diff --git a/version.json b/version.json new file mode 100644 index 0000000..9d8b7ad --- /dev/null +++ b/version.json @@ -0,0 +1,17 @@ +{ + "$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json", + "version": "2.2", + "publicReleaseRefSpec": [ + "^refs/heads/master$", + "^refs/heads/v\\d+(?:\\.\\d+)?$" + ], + "cloudBuild": { + "setVersionVariables": true, + "buildNumber": { + "enabled": true, + "includeCommitId": { + "when": "always" + } + } + } + }