Skip to content

Commit 0aca4ab

Browse files
committed
revert 7d45792, 63b5d1d
1 parent 3a576ff commit 0aca4ab

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Test
1+
name: Test, Build, Publish, Release
22
on:
33
push:
44
paths-ignore:
@@ -55,7 +55,7 @@ jobs:
5555

5656
build:
5757
name: build distribution
58-
if: github.repository_owner == 'sphinx-doc'
58+
if: github.repository_owner == 'sphinx-doc' && github.ref == 'refs/heads/master'
5959
needs:
6060
- tests
6161
runs-on: ubuntu-latest
@@ -81,7 +81,7 @@ jobs:
8181

8282
publish-to-testpypi:
8383
name: Upload release to TestPyPI
84-
if: github.repository_owner == 'sphinx-doc'
84+
if: github.repository_owner == 'sphinx-doc' && github.ref == 'refs/heads/master' # only publish to TestPyPI on push to master
8585
needs:
8686
- build
8787
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)