Skip to content

Commit 8bcc5fc

Browse files
committed
fixing docs build to main branch only
1 parent 0ab1db0 commit 8bcc5fc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/httomolibgpu_doc_conda.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ jobs:
3838
- name: Build html
3939
run: sphinx-build -a -E -b html ./docs/source/ ./docs/build/
4040

41-
- name: Run ghp-import
41+
- name: Publish docs
42+
if: github.ref_type == 'tag' || github.ref_name == 'main'
4243
run: ghp-import -n -p -f ./docs/build
4344
env:
4445
GITHUB_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)