Skip to content

Commit

Permalink
pypi: switch to trusted publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjanovsky committed May 18, 2023
1 parent 396882d commit c6e5b99
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ jobs:
name: Release on PyPi
runs-on: ubuntu-latest
if: github.repository == 'crocs-muni/sec-certs'
environment:
name: pypi
url: https://pypi.org/project/sec-certs/
permissions:
id-token: write
steps:
- uses: actions/checkout@v3
with:
Expand All @@ -23,9 +28,6 @@ jobs:
run: python -m build
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: ${{ secrets.PYPI_USERNAME }}
password: ${{ secrets.PYPI_PASSWORD }}
docker_release:
name: Release on DockerHub
runs-on: ubuntu-latest
Expand Down

0 comments on commit c6e5b99

Please sign in to comment.