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
Copy file name to clipboardExpand all lines: .github/workflows/python-publish.yml
+6-2Lines changed: 6 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
# This workflow will upload a Python Package using Twine when a release is created
2
2
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
3
3
4
-
name: Publish to PyPI
4
+
name: Upload package to PyPI
5
5
6
6
on:
7
7
release:
@@ -21,18 +21,22 @@ jobs:
21
21
22
22
steps:
23
23
- uses: actions/checkout@v4
24
+
with:
25
+
fetch-depth: 0
24
26
- name: Set up Python
25
27
uses: actions/setup-python@v4
26
28
with:
27
29
python-version: '3.x'
28
30
- name: Install dependencies
29
31
run: |
30
32
python -m pip install --upgrade pip
31
-
pip install setuptools wheel twine
33
+
pip install setuptools setuptools_scm wheel twine
32
34
- name: Build and publish
33
35
env:
34
36
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
35
37
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
38
+
# Build package, test pip install works, then upload to PyPI with twine
0 commit comments