chore: Only publish to test pypi on tagged releases
This commit is contained in:
parent
2b37f24790
commit
f546076259
1 changed files with 1 additions and 2 deletions
3
.github/workflows/release.yaml
vendored
3
.github/workflows/release.yaml
vendored
|
|
@ -1,8 +1,6 @@
|
||||||
name: Publish release packages
|
name: Publish release packages
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
tags:
|
tags:
|
||||||
- v*
|
- v*
|
||||||
|
|
||||||
|
|
@ -32,6 +30,7 @@ jobs:
|
||||||
publish-to-testpypi:
|
publish-to-testpypi:
|
||||||
name: Test publishing to testpypi
|
name: Test publishing to testpypi
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
needs:
|
needs:
|
||||||
- build
|
- build
|
||||||
environment:
|
environment:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue