Skip to content

Commit 667795d

Browse files
committed
Github actions changes
1 parent f2b5bbe commit 667795d

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

.github/workflows/python-publish.yml

+10-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This workflow will upload a Python Package using Twine when a release is created
22
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
33

4-
name: Publish Python Package
4+
name: Publish python packages
55

66
on:
77
workflow_dispatch:
@@ -25,10 +25,15 @@ jobs:
2525
run: |
2626
python -m pip install --upgrade pip
2727
pip install setuptools wheel twine
28-
- name: Build and publish
28+
- name: Build
29+
run: python setup.py sdist bdist_wheel
30+
- name: Publish wheel
2931
env:
3032
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
3133
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
32-
run: |
33-
python setup.py sdist bdist_wheel
34-
twine upload dist/*
34+
run: twine upload dist/*.whl
35+
- name: Publish source
36+
env:
37+
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
38+
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
39+
run: twine upload dist/*.tar.gz || true

.github/workflows/python-test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
22
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
33

4-
name: Python test
4+
name: Test python code
55

66
on:
77
push:

0 commit comments

Comments
 (0)