diff --git a/.github/workflows/publish_and_trivyscan.yml b/.github/workflows/publish_and_trivyscan.yml index bbe33109b..7bd44a6c8 100644 --- a/.github/workflows/publish_and_trivyscan.yml +++ b/.github/workflows/publish_and_trivyscan.yml @@ -23,13 +23,13 @@ on: release: types: [published] jobs: - build_pdf_docs: - name: Build PDF documentation + build_tech_overview: + name: Build technical overview runs-on: ubuntu-latest steps: - name: Check out the repo uses: actions/checkout@v4 - - name: Install LaTeX dependencies + - name: Build tech overview PDF uses: docker://pandoc/latex:3.2 with: entrypoint: /bin/sh @@ -37,14 +37,7 @@ jobs: -c " tlmgr update --self && tlmgr install cm-super fontaxes lato pdflscape xkeyval && - updmap-sys - " - - name: Build technical overview - uses: docker://pandoc/latex:3.2 - with: - entrypoint: /bin/sh - args: >- - -c " + updmap-sys && pandoc --output=dds_web/static/dds-technical-overview.pdf doc/technical-overview.md @@ -54,12 +47,21 @@ jobs: with: name: technical-overview-pdf path: dds_web/static/dds-technical-overview.pdf + build_troubleshooting: + name: Build troubleshooting guide + runs-on: ubuntu-latest + steps: + - name: Check out the repo + uses: actions/checkout@v4 - name: Build troubleshooting guide uses: docker://pandoc/latex:3.2 with: entrypoint: /bin/sh args: >- -c " + tlmgr update --self && + tlmgr install cm-super fontaxes lato xkeyval && + updmap-sys && pandoc --output=dds_web/static/dds-troubleshooting.pdf doc/troubleshooting.md @@ -70,7 +72,7 @@ jobs: name: troubleshooting-pdf path: dds_web/static/dds-troubleshooting.pdf push_to_registry: - needs: build_pdf_docs + needs: [build_tech_overview, build_troubleshooting] if: github.repository == 'ScilifelabDataCentre/dds_web' name: Push image runs-on: ubuntu-latest