Skip to content

Commit

Permalink
chore(ci): use trusted OIDC publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
nejch committed Oct 3, 2024
1 parent e918caa commit 53a1385
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@ env:
jobs:
publish:
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: "3.11"
- uses: abatilo/actions-poetry@v2
- name: Publish package
run: |
poetry install -n --no-dev
poetry publish --build -u __token__ -p ${{ secrets.PYPI_SECRET }}
- name: Build package
run: poetry build
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 53a1385

Please sign in to comment.