Skip to content

Commit

Permalink
chore: change publishing method
Browse files Browse the repository at this point in the history
  • Loading branch information
toadharvard committed Feb 22, 2024
1 parent bf76025 commit 50f12ee
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ jobs:
python-version: [3.11]
poetry-version: [1.7.1]
os: [ubuntu-latest]
environment:
name: pypi
url: https://pypi.org/p/desbordante-stubs
permissions:
id-token: write
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
Expand All @@ -22,9 +27,9 @@ jobs:
uses: abatilo/actions-poetry@v3
with:
poetry-version: ${{ matrix.poetry-version }}
- name: Builc
poetry build
- name: Publish
env:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
run: |
poetry config pypi-token.pypi $PYPI_TOKEN
poetry publish --build
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: dist/

0 comments on commit 50f12ee

Please sign in to comment.