Skip to content

Commit

Permalink
Merge pull request #52 from siemens/chore/oidc-publishing
Browse files Browse the repository at this point in the history
chore(ci): use trusted OIDC publishing
  • Loading branch information
dlouzan authored Oct 3, 2024
2 parents e918caa + 53a1385 commit c8f6041
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 c8f6041

Please sign in to comment.