-
Notifications
You must be signed in to change notification settings - Fork 238
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
IC:2021-04-20, Add context check to docs deploy step
Checks for the github context so the workflow only runs the deploy step when it runs on a push event to the main branch
- Loading branch information
Showing
1 changed file
with
6 additions
and
6 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 |
---|---|---|
|
@@ -127,12 +127,12 @@ jobs: | |
fi | ||
- name: PDF generation installs | ||
if: ${{ github.event_name == 'push' }} | ||
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: PDF generation | ||
if: ${{ github.event_name == 'push' }} | ||
if: ${{ github.event_name == 'push' && contains(github.ref, 'main')}} | ||
run: | | ||
set -x | ||
mkdir deploy | ||
|
@@ -143,7 +143,7 @@ jobs: | |
# pandoc CFE_Users_Guide.pdf -t gfm | ||
- name: Deploy | ||
if: ${{ github.event_name == 'push' }} | ||
if: ${{ github.event_name == 'push' && contains(github.ref, 'main')}} | ||
uses: JamesIves/[email protected] | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
@@ -210,12 +210,12 @@ jobs: | |
fi | ||
- name: PDF generation installs | ||
if: ${{ github.event_name == 'push' }} | ||
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: PDF generation | ||
if: ${{ github.event_name == 'push' }} | ||
if: ${{ github.event_name == 'push' && contains(github.ref, 'main')}} | ||
run: | | ||
mkdir deploy | ||
cd ./build/doc/osalguide/latex | ||
|
@@ -225,7 +225,7 @@ jobs: | |
# pandoc CFE_Users_Guide.pdf -t gfm | ||
- name: Deploy | ||
if: ${{ github.event_name == 'push' }} | ||
if: ${{ github.event_name == 'push' && contains(github.ref, 'main')}} | ||
uses: JamesIves/[email protected] | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|