Skip to content

Commit 66f19cb

Browse files
committed
rewrite github action
1 parent a548fbd commit 66f19cb

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

.github/workflows/pypi-release.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,17 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- uses: actions/checkout@v2
11-
- name: Build and publish to pypi
12-
uses: JRubics/poetry-publish@v1.10
11+
- uses: actions/setup-python@v3
12+
name: Ensure Python Runtime
1313
with:
14-
pypi_token: ${{ secrets.PYPI_TOKEN }}
14+
python-version: '3.x'
15+
architecture: 'x64'
16+
- name: Ensure PDM & twine
17+
run: |
18+
python3 -m pip install pdm twine
19+
- name: Build Package
20+
run: |
21+
pdm build
22+
- name: Publish to PyPI
23+
run: |
24+
twine upload dist/* --non-interactive -u __token__ -p ${{ secrets.PYPI_TOKEN }}

0 commit comments

Comments
 (0)