You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# This workflow will upload a Python Package to PyPI when a release is created
2
+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries
3
+
4
+
# This workflow uses actions that are not certified by GitHub.
5
+
# They are provided by a third-party and are governed by
6
+
# separate terms of service, privacy policy, and support
7
+
# documentation.
8
+
9
+
name: Upload Python Package
10
+
11
+
on:
12
+
release:
13
+
types: [released]
14
+
workflow_dispatch:
15
+
inputs:
16
+
publish_test:
17
+
description: 'Publish to TestPyPI'
18
+
required: true
19
+
type: boolean
20
+
default: false
21
+
publish_to_pypi:
22
+
description: 'Publish to PyPI'
23
+
required: true
24
+
type: boolean
25
+
default: false
26
+
27
+
28
+
permissions:
29
+
contents: read
30
+
31
+
jobs:
32
+
release-build:
33
+
runs-on: ubuntu-latest
34
+
35
+
steps:
36
+
- uses: actions/checkout@v4
37
+
38
+
- uses: actions/setup-python@v5
39
+
with:
40
+
python-version: "3.x"
41
+
42
+
- name: Build release distributions
43
+
run: |
44
+
# NOTE: put your own distribution build steps here.
0 commit comments