Skip to content

Commit

Permalink
use trusted publisher
Browse files Browse the repository at this point in the history
Signed-off-by: Sylvain Hellegouarch <sh@defuze.org>
  • Loading branch information
Lawouach committed Jul 27, 2023
1 parent 0ebeb76 commit 36a6481
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ on:
jobs:
release-to-pypi:
runs-on: ubuntu-22.04
environment: ci
environment: release
permissions:
id-token: write
steps:
- uses: actions/checkout@v3
- name: Set up PDM
Expand All @@ -22,12 +24,12 @@ jobs:
cache: false
prerelease: true

- name: Publish wheels
- name: Build package
run: |
pdm publish
env:
PDM_PUBLISH_USERNAME: chaostoolkit
PDM_PUBLISH_PASSWORD: ${{ secrets.PYPI_PWD }}
pdm build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

- name: Upload packages as artifacts
uses: actions/upload-artifact@v2-preview
Expand Down

0 comments on commit 36a6481

Please sign in to comment.