Skip to content

Commit

Permalink
Fixed github workflow.
Browse files Browse the repository at this point in the history
Reordered actions (PDF -> publish -> HTML -> publish)
Clean before each build (this fixes the issue with the unrecognized \sout command)
  • Loading branch information
pjarosik authored Dec 12, 2023
1 parent b8f6720 commit b23c59f
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,21 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Install dependencies
run: sudo apt-get install git
- uses: actions/checkout@v1
# HTML
- uses: us4useu/sphinx-action@master
with:
docs-folder: "docs/"
# PDF.
- uses: us4useu/sphinx-action@master
with:
pre-build-command: "apt-get --allow-releaseinfo-change update -y && apt-get install -y texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended latexmk"
build-command: "make latexpdf"
build-command: "make clean latexpdf"
docs-folder: "docs/"
- uses: softprops/action-gh-release@v1
with:
files: docs/_build/latex/user_manual.pdf
# Publish docs on GH Pages.
# HTML
- uses: us4useu/sphinx-action@master
with:
docs-folder: "docs/"
build-command: "make clean html"
- name: Commit documentation changes
run: |
git clone https://github.com/us4useu/us4r_user_manual.git --branch gh-pages --single-branch gh-pages
Expand Down

0 comments on commit b23c59f

Please sign in to comment.