Skip to content

Commit 9801d9f

Browse files
committed
Add workflow to build and publish pypi packages
1 parent 330ba49 commit 9801d9f

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Build and Publish Pypi Packages
2+
run-name: ${{ format('Release {0}', inputs.release_type)}} Package by @${{ github.actor }}
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
release_type:
7+
type: choice
8+
description: The type of release
9+
options:
10+
- Major
11+
- Minor
12+
- Patch
13+
publish_vulnerabilities:
14+
type: string
15+
default: true
16+
pull_request:
17+
18+
jobs:
19+
build-and-pubish:
20+
name: Build and publish Python packages to Pypi
21+
uses: IABTechLab/uid2-shared-actions/.github/workflows/shared-publish-to-pypi-versioned.yaml@kcc-UID2-2330-create-workflow-for-python
22+
with:
23+
release_type: ${{ inputs.release_type }}
24+
secrets: inherit

version.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json",
3+
"version": "2.2",
4+
"publicReleaseRefSpec": [
5+
"^refs/heads/master$",
6+
"^refs/heads/v\\d+(?:\\.\\d+)?$"
7+
],
8+
"cloudBuild": {
9+
"setVersionVariables": true,
10+
"buildNumber": {
11+
"enabled": true,
12+
"includeCommitId": {
13+
"when": "always"
14+
}
15+
}
16+
}
17+
}

0 commit comments

Comments
 (0)