Skip to content

Commit a7044b2

Browse files
committed
fix package publish
1 parent b803f8f commit a7044b2

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

.github/workflows/cd.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,16 @@ jobs:
1818
- uses: actions/setup-python@v4
1919
with:
2020
python-version: ${{ env.PYTHON_LATEST }}
21+
- uses: snok/install-poetry@v1
22+
with:
23+
version: 1.3.0
24+
- name: Install dependencies
25+
run: |
26+
poetry self add "poetry-dynamic-versioning[plugin]"
2127
22-
- run: python -m pip install build twine
23-
- run: python -m build --sdist --wheel .
28+
- run: poetry build
2429

2530
- name: Publish package
2631
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
27-
uses: pypa/gh-action-pypi-publish@release/v1
28-
with:
29-
user: __token__
30-
password: ${{ secrets.PYPI_API_TOKEN }}
32+
run: |
33+
poetry publish -u __token__ -p ${{ secrets.PYPI_TOKEN }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
**/.mypy_cache/
44
.coverage
55
.idea/
6+
dist/

0 commit comments

Comments
 (0)