-
Notifications
You must be signed in to change notification settings - Fork 224
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #184 from skliper/fix170-doc_push
Fix #170, Deploy documentation from GitHub action
- Loading branch information
Showing
1 changed file
with
54 additions
and
0 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 |
---|---|---|
|
@@ -69,6 +69,7 @@ jobs: | |
uses: actions/checkout@v2 | ||
with: | ||
submodules: true | ||
persist-credentials: false | ||
|
||
# Setup the build system | ||
- name: Copy Files | ||
|
@@ -112,6 +113,32 @@ jobs: | |
exit -1 | ||
fi | ||
- name: PDF generation installs | ||
if: ${{ github.event_name == 'push' }} | ||
run: | | ||
sudo apt-get install texlive-latex-base texlive-fonts-recommended texlive-fonts-extra texlive-latex-extra | ||
- name: PDF generation | ||
if: ${{ github.event_name == 'push' }} | ||
run: | | ||
set -x | ||
mkdir deploy | ||
cd ./build/doc/users_guide/latex | ||
make > build.txt | ||
mv refman.pdf $GITHUB_WORKSPACE/deploy/cFE_Users_Guide.pdf | ||
# Could add pandoc and convert to github markdown | ||
# pandoc CFE_Users_Guide.pdf -t gfm | ||
- name: Deploy | ||
if: ${{ github.event_name == 'push' }} | ||
uses: JamesIves/[email protected] | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
BRANCH: gh-pages | ||
FOLDER: deploy | ||
CLEAN: false | ||
SINGLE_COMMIT: true | ||
|
||
build-osalguide: | ||
# Name the Job | ||
name: Osal Guide | ||
|
@@ -124,6 +151,7 @@ jobs: | |
uses: actions/checkout@v2 | ||
with: | ||
submodules: true | ||
persist-credentials: false | ||
|
||
# Setup the build system | ||
- name: Copy Files | ||
|
@@ -167,3 +195,29 @@ jobs: | |
cat osalguide_warnings.log | ||
exit -1 | ||
fi | ||
- name: PDF generation installs | ||
if: ${{ github.event_name == 'push' }} | ||
run: | | ||
sudo apt-get install texlive-latex-base texlive-fonts-recommended texlive-fonts-extra texlive-latex-extra | ||
- name: PDF generation | ||
if: ${{ github.event_name == 'push' }} | ||
run: | | ||
mkdir deploy | ||
cd ./build/doc/osalguide/latex | ||
make > build.txt | ||
mv refman.pdf $GITHUB_WORKSPACE/deploy/OSAL_Users_Guide.pdf | ||
# Could add pandoc and convert to github markdown | ||
# pandoc CFE_Users_Guide.pdf -t gfm | ||
- name: Deploy | ||
if: ${{ github.event_name == 'push' }} | ||
uses: JamesIves/[email protected] | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
BRANCH: gh-pages | ||
FOLDER: deploy | ||
CLEAN: false | ||
SINGLE_COMMIT: true | ||
|