-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add workflow to build and publish pypi packages
- Loading branch information
1 parent
330ba49
commit 9801d9f
Showing
2 changed files
with
41 additions
and
0 deletions.
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,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 |
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,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" | ||
} | ||
} | ||
} | ||
} |