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 workflows will upload a Python Package using Twine when a release is created
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
-
4
-
name: Upload Python Package to pypi
1
+
name: Upload Python Package to PyPI
5
2
6
3
on: workflow_dispatch
7
4
8
5
jobs:
9
6
deploy:
10
-
11
7
runs-on: ubuntu-latest
12
8
13
9
steps:
14
-
- uses: actions/checkout@v2
15
-
- name: Set up Python
16
-
uses: actions/setup-python@v2
17
-
with:
18
-
python-version: '3.8'
19
-
- name: Install dependencies
20
-
run: |
21
-
pip install setuptools wheel twine
22
-
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
23
-
- name: Build and publish
24
-
env:
25
-
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
26
-
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
27
-
run: |
28
-
python setup.py sdist bdist_wheel
29
-
twine upload dist/*
10
+
- uses: actions/checkout@v3
11
+
- name: Set up Python
12
+
uses: actions/setup-python@v4
13
+
with:
14
+
python-version: "3.10"
15
+
- name: Install dependencies
16
+
run: |
17
+
pip install setuptools wheel twine
18
+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
# This workflows will upload a Python Package using Twine when a release is created
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
-
4
-
name: Upload Python Package to testpypi
1
+
name: Upload Python Package to Test PyPI
5
2
6
3
on:
7
4
workflow_dispatch:
@@ -13,19 +10,19 @@ jobs:
13
10
runs-on: ubuntu-latest
14
11
15
12
steps:
16
-
- uses: actions/checkout@v2
13
+
- uses: actions/checkout@v3
17
14
- name: Set up Python
18
-
uses: actions/setup-python@v2
15
+
uses: actions/setup-python@v4
19
16
with:
20
-
python-version: 3.8
17
+
python-version: "3.10"
21
18
- name: Install dependencies
22
19
run: |
23
20
pip install setuptools wheel twine
24
21
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
0 commit comments