diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 51c61702..a1edc0c9 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -60,12 +60,15 @@ jobs: path: src/${{ matrix.package }}/dist/ publish: + runs-on: ubuntu-latest needs: [build, detect-packages] + if: github.event_name == 'release' + strategy: matrix: package: ${{ fromJson(needs.detect-packages.outputs.packages) }} name: Publish ${{ matrix.package }} - runs-on: ubuntu-latest + environment: release permissions: id-token: write # Required for trusted publishing