Skip to content

Commit

Permalink
Merge pull request #184 from skliper/fix170-doc_push
Browse files Browse the repository at this point in the history
Fix #170, Deploy documentation from GitHub action
  • Loading branch information
astrogeco authored Feb 16, 2021
2 parents b24c5fe + 4612acb commit 37b1719
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/build-documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ jobs:
uses: actions/checkout@v2
with:
submodules: true
persist-credentials: false

# Setup the build system
- name: Copy Files
Expand Down Expand Up @@ -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
Expand All @@ -124,6 +151,7 @@ jobs:
uses: actions/checkout@v2
with:
submodules: true
persist-credentials: false

# Setup the build system
- name: Copy Files
Expand Down Expand Up @@ -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

0 comments on commit 37b1719

Please sign in to comment.