Skip to content

Commit eaf18da

Browse files
committed
PROD always deploy
1 parent f36d761 commit eaf18da

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.ci_scripts/update_docs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,11 @@ make html SPHINXOPTS="-W --keep-going -n"
3333
linkcheck_failed=0
3434
make linkcheck > /dev/null || linkcheck_failed=1
3535
python ../.ci_scripts/display_linkcheck.py _build/linkcheck/output.json
36-
test "$linkcheck_failed" -eq 0
36+
37+
if [[ "${GHREF}" != "refs/heads/main" ]]; then
38+
test "$linkcheck_failed" -eq 0
39+
fi
40+
3741
mv _build/html ../docs
3842
rm -rf _build
3943
popd

.github/workflows/deploy.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ jobs:
2929
shell: bash -l {0}
3030
run: |
3131
source ./.ci_scripts/update_docs
32+
env:
33+
GHREF: ${{ github.ref }}
3234

3335
- name: deploy
3436
if: github.ref == 'refs/heads/main' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch')

0 commit comments

Comments
 (0)