-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (42 loc) · 1.33 KB
/
publish-to-testpypi-pypi.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Publish Python 🐍 distributions 📦
on:
workflow_dispatch:
inputs:
publish_testpypi:
type: boolean
default: false
description: Publish to TestPyPI
publish_pypi:
type: boolean
default: false
description: Publish to PyPI
publish_gh_release:
type: boolean
default: true
description: Publish to GitHub Release
use_changelog:
type: boolean
default: true
description: Extract release notes from CHANGELOG.md
changelog_file:
type: string
default: CHANGELOG.md
description: Path to changelog file
required: false
release_tag:
type: string
description: Tag to package (empty for latest tag)
required: false
jobs:
build-n-publish:
uses: atomiechen/reusable-workflows/.github/workflows/publish-python-distributions.yml@main
with:
publish_testpypi: ${{ inputs.publish_testpypi }}
publish_pypi: ${{ inputs.publish_pypi }}
publish_gh_release: ${{ inputs.publish_gh_release }}
use_changelog: ${{ inputs.use_changelog }}
changelog_file: ${{ inputs.changelog_file }}
release_tag: ${{ inputs.release_tag }}
secrets:
TEST_PYPI_API_TOKEN: ${{ secrets.TEST_PYPI_API_TOKEN }}
PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}