Skip to content

Commit 7dcd203

Browse files
committed
ci: update publish action
1 parent 3a0f2d3 commit 7dcd203

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/python-publish.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212
runs-on: ubuntu-latest
1313
strategy:
1414
matrix:
15-
python-version: ["3.7", "3.8", "3.9", "3.10"]
15+
python-version: ['3.8', '3.90', '3.10', '3.11', '3.12']
1616

1717
steps:
18-
- uses: actions/checkout@v3
18+
- uses: actions/checkout@v4
1919

2020
- name: Set up Python ${{ matrix.python-version }}
2121
uses: actions/setup-python@v5
@@ -26,6 +26,7 @@ jobs:
2626
run: |
2727
python -m pip install --upgrade pip
2828
pip install tox tox-gh-actions
29+
python -m pip install poetry poetry poetry-plugin-export
2930
3031
- name: Test with tox
3132
run: tox
@@ -34,7 +35,7 @@ jobs:
3435
runs-on: ubuntu-latest
3536
needs: test
3637
steps:
37-
- uses: actions/checkout@v3
38+
- uses: actions/checkout@v4
3839

3940
- name: Set up Python
4041
uses: actions/setup-python@v5
@@ -44,12 +45,11 @@ jobs:
4445
- name: Install dependencies
4546
run: |
4647
python -m pip install --upgrade pip
47-
pip install setuptools wheel twine
48+
python -m pip install poetry poetry poetry-plugin-export
4849
4950
- name: Build and publish
5051
env:
51-
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
52-
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
52+
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}
5353
run: |
54-
python setup.py sdist bdist_wheel
55-
twine upload dist/*
54+
poetry build
55+
poetry publish

0 commit comments

Comments
 (0)