Skip to content

Commit

Permalink
Update documentation step in CI GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
fritzm committed Nov 11, 2023
1 parent a8b018f commit 3ba7cc6
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ jobs:
- name: Install python
uses: actions/setup-python@v3
with:
python-version: '3.x'
python-version: '3.11'

- name: Install click
run: |
Expand All @@ -194,7 +194,7 @@ jobs:
with:
filters: |
docs:
- '**'
- 'doc/**'
- name: Prepare user build image
if: needs.update-base-images.outputs.build-rebuilt == 'True' || steps.filter.outputs.docs == 'true'
Expand All @@ -204,18 +204,30 @@ jobs:
--build-image ${{ needs.image-names.outputs.build-image }} \
--user-build-image ${{ needs.image-names.outputs.user-build-image }}
- name: Build and publish
- name: Build docs
if: needs.update-base-images.outputs.build-rebuilt == 'True' || steps.filter.outputs.docs == 'true'
run: |
./admin/local/cli/qserv build-docs --cmake --linkcheck --upload \
./admin/local/cli/qserv build-docs --cmake --linkcheck \
--user-build-image ${{ needs.image-names.outputs.user-build-image }}
env:
QSERV_LTD_USERNAME: ${{ secrets.LTD_USERNAME }}
QSERV_LTD_PASSWORD: ${{ secrets.LTD_PASSWORD }}
QSERV_GH_EVENT_NAME: ${{ github.event_name }}
QSERV_GH_HEAD_REF: ${{ github.head_ref }}
QSERV_GH_REF: ${{ github.ref }}

# Only attempt documentation uploads for tagged releases and pull
# requests from ticket branches in the same repository. This avoids
# version clutter in the docs and failures when a PR doesn't have access
# to secrets.
- name: Upload to LSST the Docs
uses: lsst-sqre/ltd-upload@v1
with:
project: "qserv"
dir: "build/doc/html"
username: ${{ secrets.LTD_USERNAME }}
password: ${{ secrets.LTD_PASSWORD }}
if: >
(github.event_name != 'pull_request' || startsWith(github.head_ref, 'tickets/'))
&& (needs.update-base-images.outputs.build-rebuilt == 'True' || steps.filter.outputs.docs == 'true')
update-run-image:
name: Update Qserv image
Expand Down

0 comments on commit 3ba7cc6

Please sign in to comment.