Only publish on release
This commit is contained in:
parent
4f871840e5
commit
aac117f7b3
1 changed files with 4 additions and 1 deletions
5
.github/workflows/python.yml
vendored
5
.github/workflows/python.yml
vendored
|
|
@ -60,12 +60,15 @@ jobs:
|
||||||
path: src/${{ matrix.package }}/dist/
|
path: src/${{ matrix.package }}/dist/
|
||||||
|
|
||||||
publish:
|
publish:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
needs: [build, detect-packages]
|
needs: [build, detect-packages]
|
||||||
|
if: github.event_name == 'release'
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
package: ${{ fromJson(needs.detect-packages.outputs.packages) }}
|
package: ${{ fromJson(needs.detect-packages.outputs.packages) }}
|
||||||
name: Publish ${{ matrix.package }}
|
name: Publish ${{ matrix.package }}
|
||||||
runs-on: ubuntu-latest
|
|
||||||
environment: release
|
environment: release
|
||||||
permissions:
|
permissions:
|
||||||
id-token: write # Required for trusted publishing
|
id-token: write # Required for trusted publishing
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue