CI: Only attempt publish for upstream (#1179)
Only attempt publish for upstream Co-authored-by: Hynek Schlawack <hs@ox.cx>
This commit is contained in:
parent
a5cbd51fd9
commit
336ea8b691
|
@ -33,7 +33,7 @@ jobs:
|
||||||
release-test-pypi:
|
release-test-pypi:
|
||||||
name: Publish in-dev package to test.pypi.org
|
name: Publish in-dev package to test.pypi.org
|
||||||
environment: release-test-pypi
|
environment: release-test-pypi
|
||||||
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
if: github.repository_owner == 'python-attrs' && github.event_name == 'push' && github.ref == 'refs/heads/main'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: build-package
|
needs: build-package
|
||||||
|
|
||||||
|
@ -53,7 +53,7 @@ jobs:
|
||||||
release-pypi:
|
release-pypi:
|
||||||
name: Publish released package to pypi.org
|
name: Publish released package to pypi.org
|
||||||
environment: release-pypi
|
environment: release-pypi
|
||||||
if: github.event.action == 'published'
|
if: github.repository_owner == 'python-attrs' && github.event.action == 'published'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: build-package
|
needs: build-package
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue