-
Notifications
You must be signed in to change notification settings - Fork 235
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #312, Generate Documentation In All Scenarios
- Loading branch information
1 parent
4e7357f
commit 258f1df
Showing
1 changed file
with
42 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -129,33 +129,11 @@ jobs: | |
exit -1 | ||
fi | ||
- name: Cache cFS Build Environment for usersguide | ||
id: cache-bundle | ||
uses: actions/cache@v2 | ||
with: | ||
path: /home/runner/work/${{ env.REPO_NAME }}/${{ env.REPO_NAME }}/build/* | ||
key: usersguide-buildnum-${{ github.run_number }} | ||
|
||
deploy-usersguide: | ||
needs: build-usersguide | ||
# Name the Job | ||
name: Deploy Users Guide | ||
# Set the type of machine to run on | ||
runs-on: ubuntu-18.04 | ||
|
||
steps: | ||
- name: Install Dependencies | ||
if: ${{ github.event_name == 'push' && contains(github.ref, 'main')}} | ||
run: | | ||
sudo apt-get install texlive-latex-base texlive-fonts-recommended texlive-fonts-extra texlive-latex-extra | ||
- name: Cache cFS Build Environment for usersguide | ||
id: cache-bundle | ||
uses: actions/cache@v2 | ||
with: | ||
path: /home/runner/work/${{ env.REPO_NAME }}/${{ env.REPO_NAME }}/build/* | ||
key: usersguide-buildnum-${{ github.run_number }} | ||
|
||
- name: Generate PDF | ||
if: ${{ github.event_name == 'push' && contains(github.ref, 'main')}} | ||
run: | | ||
|
@@ -167,6 +145,28 @@ jobs: | |
# Could add pandoc and convert to github markdown | ||
# pandoc CFE_Users_Guide.pdf -t gfm | ||
- name: Cache cFS Build Environment for osalguide | ||
id: cache-usersguide | ||
uses: actions/cache@v2 | ||
with: | ||
path: /home/runner/work/${{ env.REPO_NAME }}/${{ env.REPO_NAME }}/deploy/* | ||
key: osalguide-buildnum-${{ github.run_number }} | ||
|
||
deploy-usersguide: | ||
needs: build-usersguide | ||
# Name the Job | ||
name: Deploy Users Guide | ||
# Set the type of machine to run on | ||
runs-on: ubuntu-18.04 | ||
|
||
steps: | ||
- name: Cache cFS Build Environment for usersguide | ||
id: cache-usersguide | ||
uses: actions/cache@v2 | ||
with: | ||
path: /home/runner/work/${{ env.REPO_NAME }}/${{ env.REPO_NAME }}/deploy/* | ||
key: usersguide-buildnum-${{ github.run_number }} | ||
|
||
- name: Deploy to GitHub | ||
if: ${{ github.event_name == 'push' && contains(github.ref, 'main')}} | ||
uses: JamesIves/[email protected] | ||
|
@@ -232,31 +232,11 @@ jobs: | |
exit -1 | ||
fi | ||
- name: Cache cFS Build Environment for osalguide | ||
id: cache-bundle | ||
uses: actions/cache@v2 | ||
with: | ||
path: /home/runner/work/${{ env.REPO_NAME }}/${{ env.REPO_NAME }}/build/* | ||
key: osalguide-buildnum-${{ github.run_number }} | ||
|
||
deploy-osalguide: | ||
needs: build-osalguide | ||
name: Deploy Osal Guide | ||
runs-on: ubuntu-18.04 | ||
|
||
steps: | ||
- name: Install Dependencies | ||
if: ${{ github.event_name == 'push' && contains(github.ref, 'main')}} | ||
run: | | ||
sudo apt-get install texlive-latex-base texlive-fonts-recommended texlive-fonts-extra texlive-latex-extra | ||
- name: Cache cFS Build Environment for osalguide | ||
id: cache-bundle | ||
uses: actions/cache@v2 | ||
with: | ||
path: /home/runner/work/${{ env.REPO_NAME }}/${{ env.REPO_NAME }}/build/* | ||
key: osalguide-buildnum-${{ github.run_number }} | ||
|
||
- name: Generate PDF | ||
if: ${{ github.event_name == 'push' && contains(github.ref, 'main')}} | ||
run: | | ||
|
@@ -267,6 +247,26 @@ jobs: | |
# Could add pandoc and convert to github markdown | ||
# pandoc CFE_Users_Guide.pdf -t gfm | ||
- name: Cache cFS Build Environment for osalguide | ||
id: cache-osalguide | ||
uses: actions/cache@v2 | ||
with: | ||
path: /home/runner/work/${{ env.REPO_NAME }}/${{ env.REPO_NAME }}/deploy/* | ||
key: osalguide-buildnum-${{ github.run_number }} | ||
|
||
deploy-osalguide: | ||
needs: build-osalguide | ||
name: Deploy Osal Guide | ||
runs-on: ubuntu-18.04 | ||
|
||
steps: | ||
- name: Cache cFS Build Environment for osalguide | ||
id: cache-osalguide | ||
uses: actions/cache@v2 | ||
with: | ||
path: /home/runner/work/${{ env.REPO_NAME }}/${{ env.REPO_NAME }}/deploy/* | ||
key: osalguide-buildnum-${{ github.run_number }} | ||
|
||
- name: Deploy to GitHub | ||
if: ${{ github.event_name == 'push' && contains(github.ref, 'main')}} | ||
uses: JamesIves/[email protected] | ||
|