Skip to content

Commit 249afe5

Browse files
authored
ci: don't upload docs unless deploying them (#12163)
1 parent 28a9a5e commit 249afe5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,10 @@ jobs:
4747
env:
4848
RUSTDOCFLAGS: --cfg docsrs -D warnings --show-type-layout --generate-link-to-definition --enable-index-page -Zunstable-options
4949
- name: Setup Pages
50+
if: github.ref_name == 'master' && github.event_name == 'push'
5051
uses: actions/configure-pages@v5
5152
- name: Upload artifact
53+
if: github.ref_name == 'master' && github.event_name == 'push'
5254
uses: actions/upload-pages-artifact@v4
5355
with:
5456
path: ./target/doc

0 commit comments

Comments
 (0)