mirror of
https://github.com/pyTooling/Actions.git
synced 2026-02-17 13:36:56 +08:00
LaTeX: Using alternative for addnab/docker-run-action.
This commit is contained in:
20
.github/workflows/LaTeXDocumentation.yml
vendored
20
.github/workflows/LaTeXDocumentation.yml
vendored
@@ -58,6 +58,10 @@ jobs:
|
||||
name: 📓 Converting LaTeX Documentation to PDF
|
||||
runs-on: "ubuntu-${{ inputs.ubuntu_image_version }}"
|
||||
continue-on-error: ${{ inputs.can-fail == 'true' }}
|
||||
container:
|
||||
image: pytooling/miktex:sphinx
|
||||
volumes:
|
||||
- ${{ github.workspace }}/latex:/latex
|
||||
steps:
|
||||
- name: 📥 Download artifacts '${{ inputs.latex_artifact }}' from 'SphinxDocumentation' job
|
||||
uses: pyTooling/download-artifact@v7
|
||||
@@ -65,22 +69,10 @@ jobs:
|
||||
name: ${{ inputs.latex_artifact }}
|
||||
path: latex
|
||||
|
||||
# - name: Debug
|
||||
# run: |
|
||||
# tree -pash .
|
||||
|
||||
- name: Build LaTeX document using 'pytooling/miktex:sphinx'
|
||||
uses: addnab/docker-run-action@v3
|
||||
if: inputs.pdf_artifact != ''
|
||||
with:
|
||||
image: pytooling/miktex:sphinx
|
||||
options: -v ${{ github.workspace }}/latex:/latex --workdir /latex
|
||||
run: |
|
||||
# which ${{ inputs.processor }}
|
||||
# pwd
|
||||
# ls -lAh
|
||||
|
||||
latexmk -${{ inputs.processor }} "${{ inputs.document }}.tex"
|
||||
run: |
|
||||
latexmk -${{ inputs.processor }} "${{ inputs.document }}.tex"
|
||||
|
||||
- name: 📤 Upload 'PDF Documentation' artifact
|
||||
uses: pyTooling/upload-artifact@v6
|
||||
|
||||
Reference in New Issue
Block a user