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
1
name: Upload Python Package
10
2
11
3
on:
@@ -26,11 +18,14 @@ jobs:
26
18
with:
27
19
python-version: "3.x"
28
20
21
+
- name: Install dependencies
22
+
run: |
23
+
python -m pip install --upgrade pip
24
+
python -m pip install setuptools wheel twine
25
+
29
26
- name: Build release distributions
30
27
run: |
31
-
# NOTE: put your own distribution build steps here.
32
-
python -m pip install build
33
-
python -m build
28
+
python setup.py bdist_wheel
34
29
35
30
- name: Upload distributions
36
31
uses: actions/upload-artifact@v4
@@ -43,19 +38,10 @@ jobs:
43
38
needs:
44
39
- release-build
45
40
permissions:
46
-
# IMPORTANT: this permission is mandatory for trusted publishing
47
41
id-token: write
48
42
49
-
# Dedicated environments with protections for publishing are strongly recommended.
50
-
# For more information, see: https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment#deployment-protection-rules
51
43
environment:
52
44
name: pypi
53
-
# OPTIONAL: uncomment and update to include your PyPI project URL in the deployment status:
54
-
# url: https://pypi.org/p/YOURPROJECT
55
-
#
56
-
# ALTERNATIVE: if your GitHub Release name is the PyPI project version string
57
-
# ALTERNATIVE: exactly, uncomment the following line instead:
0 commit comments