Skip to content

Commit cae38cc

Browse files
committed
Update for pypi and bump release
1 parent 3336752 commit cae38cc

File tree

2 files changed

+38
-18
lines changed

2 files changed

+38
-18
lines changed

.github/workflows/python-publish.yml

+37-17
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,44 @@ on:
1313
types: [published]
1414

1515
jobs:
16-
deploy:
16+
release-build:
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- uses: actions/checkout@v4
21+
22+
- uses: actions/setup-python@v4
23+
with:
24+
python-version: "3.x"
25+
26+
- name: install dependencies
27+
run: |
28+
python -m pip install --upgrade pip
29+
pip install build
1730
31+
- name: build package
32+
run: python -m build
33+
34+
- name: upload dists
35+
uses: actions/upload-artifact@v3
36+
with:
37+
name: release-dists
38+
path: dist/
39+
40+
pypi-publish:
1841
runs-on: ubuntu-latest
42+
needs:
43+
- release-build
44+
permissions:
45+
id-token: write
1946

2047
steps:
21-
- uses: actions/checkout@v2
22-
- name: Set up Python
23-
uses: actions/setup-python@v2
24-
with:
25-
python-version: '3.x'
26-
- name: Install dependencies
27-
run: |
28-
python -m pip install --upgrade pip
29-
pip install build
30-
- name: Build package
31-
run: python -m build
32-
- name: Publish package
33-
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
34-
with:
35-
user: __token__
36-
password: ${{ secrets.PYPI_API_TOKEN }}
48+
- name: Retrieve release distributions
49+
uses: actions/download-artifact@v3
50+
with:
51+
name: release-dists
52+
path: dist/
53+
54+
- name: Publish release distributions to PyPI
55+
uses: pypa/gh-action-pypi-publish@release/v1
56+

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = '0.1.34'
1+
__version__ = '0.1.35'
22

33
_classifiers = [
44
'Development Status :: 4 - Beta',

0 commit comments

Comments
 (0)