Skip to content

Commit

Permalink
BUG: Fix pypi action publish settings scope
Browse files Browse the repository at this point in the history
  • Loading branch information
thewtex committed Apr 22, 2024
1 parent ac76715 commit 36ec750
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build-test-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@ name: "build-test-publish"

on: [push, pull_request]

environment:
name: pypi
url: https://pypi.org/p/itk-dreg
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing

jobs:
build_wheel:
name: Build Python wheels
Expand Down Expand Up @@ -69,6 +63,12 @@ jobs:
- pytest
runs-on: ubuntu-22.04
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
environment:
name: pypi
url: https://pypi.org/p/itk-dreg
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing

steps:
- name: Download Python Wheel Artifact
uses: actions/download-artifact@v4
Expand Down

0 comments on commit 36ec750

Please sign in to comment.