Skip to content

Commit c8f6041

Browse files
authored
Merge pull request #52 from siemens/chore/oidc-publishing
chore(ci): use trusted OIDC publishing
2 parents e918caa + 53a1385 commit c8f6041

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/publish.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,15 @@ env:
1111
jobs:
1212
publish:
1313
runs-on: ubuntu-latest
14+
permissions:
15+
id-token: write
1416
steps:
1517
- uses: actions/checkout@v4
1618
- uses: actions/setup-python@v4
1719
with:
1820
python-version: "3.11"
1921
- uses: abatilo/actions-poetry@v2
20-
- name: Publish package
21-
run: |
22-
poetry install -n --no-dev
23-
poetry publish --build -u __token__ -p ${{ secrets.PYPI_SECRET }}
22+
- name: Build package
23+
run: poetry build
24+
- name: Publish package to PyPI
25+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)