From 9d358d7bae2bd85133e810c94eff1c5d75524ab0 Mon Sep 17 00:00:00 2001 From: arielswalker <166176736+arielswalker@users.noreply.github.com> Date: Wed, 4 Sep 2024 11:41:46 -0500 Subject: [PATCH] Update build-documentation.yml --- .github/workflows/build-documentation.yml | 68 +++++++++++++++-------- 1 file changed, 45 insertions(+), 23 deletions(-) diff --git a/.github/workflows/build-documentation.yml b/.github/workflows/build-documentation.yml index 0af1b0fa7..119a83307 100644 --- a/.github/workflows/build-documentation.yml +++ b/.github/workflows/build-documentation.yml @@ -51,32 +51,54 @@ jobs: key: cfs-doc-${{ github.run_number }} build-cfe-usersguide: - needs: checkout-and-cache name: Build and deploy cFE Docs - #uses: nasa/cFS/.github/workflows/build-deploy-doc.yml@main - uses: ./.github/workflows/build-deploy-doc.yml - with: - path: ${{ github.repository_owner }}/cFS - branch: main - target: "[\"cfe-usersguide\"]" - cache-key: cfs-doc-${{ github.run_number }} - buildpdf: ${{ github.event_name == 'push' && contains(github.ref, 'main')}} - deploy: false # Note can't use cache with deploy, deploy in following job instead - - build-mission-doc: needs: checkout-and-cache + runs-on: ${{ github.repository_owner == 'cFS' && 'linux' || 'ubuntu-latest' }} + + steps: + + - name: Build and deploy Opensource cFE Docs + if: ${{ github.repository_owner == 'nasa' }} + uses: nasa/cFS/.github/workflows/build-deploy-doc.yml@main + with: + target: "[\"cfe-usersguide\"]" + cache-key: cfs-doc-${{ github.run_number }} + buildpdf: ${{ github.event_name == 'push' && contains(github.ref, 'main')}} + deploy: false # Note can't use cache with deploy, deploy in following job instead + + - name: Build and deploy Internal cFE Docs + if: ${{ github.repository_owner == 'cFS' }} + uses: cFS/cFS/.github/workflows/build-deploy-doc.yml@main + with: + target: "[\"cfe-usersguide\"]" + cache-key: cfs-doc-${{ github.run_number }} + buildpdf: ${{ github.event_name == 'push' && contains(github.ref, 'main')}} + deploy: false # Note can't use cache with deploy, deploy in following job instead + + build-mission-doc: name: Build Mission Doc - #uses: nasa/cFS/.github/workflows/build-deploy-doc.yml@main - uses: ./.github/workflows/build-deploy-doc.yml - with: - path: ${{ github.repository_owner }}/cFS - branch: main - target: '["mission-doc"]' - cache-key: cfs-doc-${{ github.run_number }} - deploy: false - buildpdf: false # No need for mission pdf within cFE, done at bundle level - - + needs: checkout-and-cache + runs-on: ${{ github.repository_owner == 'cFS' && 'linux' || 'ubuntu-latest' }} + + steps: + - name: Build and deploy Opensource cFE Docs + if: ${{ github.repository_owner == 'nasa' }} + uses: nasa/cFS/.github/workflows/build-deploy-doc.yml@main + with: + target: '["mission-doc"]' + cache-key: cfs-doc-${{ github.run_number }} + deploy: false + buildpdf: false # No need for mission pdf within cFE, done at bundle level + + - name: Build and deploy Internal cFE Docs + if: ${{ github.repository_owner == 'cFS' }} + uses: cFS/cFS/.github/workflows/build-deploy-doc.yml@main + with: + target: '["mission-doc"]' + cache-key: cfs-doc-${{ github.run_number }} + deploy: false + buildpdf: false # No need for mission pdf within cFE, done at bundle level + deploy-documentation: needs: build-cfe-usersguide if: ${{ github.event_name == 'push' && contains(github.ref, 'main')}}