Skip to content

Commit d058a29

Browse files
authored
Only deploy documentation on main (#1055)
1 parent df1c053 commit d058a29

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,9 +228,9 @@ jobs:
228228
allowed-skips: test-live
229229

230230
deploy-docs:
231-
if: "success() && github.ref == 'refs/heads/main'"
232-
runs-on: ubuntu-latest
233231
needs: [check]
232+
if: "success() && startsWith(github.ref, 'refs/tags/')"
233+
runs-on: ubuntu-latest
234234
environment:
235235
name: deploy-docs
236236
url: https://ai.pydantic.dev

0 commit comments

Comments
 (0)