Skip to content

Commit

Permalink
chore: update github workflow publish
Browse files Browse the repository at this point in the history
  • Loading branch information
polarmutex committed Sep 17, 2023
1 parent 5328f71 commit 01f6cdb
Showing 1 changed file with 9 additions and 15 deletions.
24 changes: 9 additions & 15 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,13 @@ jobs:
runs-on: ubuntu-latest
needs: [release-please]
if: needs.release-please.outputs.release_created
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine build
- name: Build and publish
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: |
python3 -m build --sdist --wheel .
twine upload dist/*
- uses: actions/checkout@v3

- uses: pdm-project/setup-pdm@v3

- name: Publish package distributions to PyPI
run: pdm publish

0 comments on commit 01f6cdb

Please sign in to comment.