Skip to content

Commit

Permalink
Update build-documentation.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
arielswalker authored Sep 4, 2024
1 parent 6863803 commit 9d358d7
Showing 1 changed file with 45 additions and 23 deletions.
68 changes: 45 additions & 23 deletions .github/workflows/build-documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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')}}
Expand Down

0 comments on commit 9d358d7

Please sign in to comment.