Skip to content

Commit

Permalink
chore: update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Redmomn committed Mar 4, 2024
1 parent ed47c82 commit 2fa8a9f
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/pypi-publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ jobs:
with:
python-version: "3.x"

- name: Setup Poetry
- name: Install pypa/build
run: |
pip install poetry
python -m pip install build --user
- run: |
echo "TAG_NAME=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
Expand All @@ -43,10 +43,13 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Publish PyPI and Github
- name: Build a binary wheel and a source tarball
run: |
poetry build
python -m build --sdist --wheel --outdir dist/ .
ls dist/
- name: Publish Github
run: |
gh release upload --clobber ${{ env.TAG_NAME }} dist/*.tar.gz dist/*.whl
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 2fa8a9f

Please sign in to comment.