-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
align github actions with github.com:michaelroland/jku-templates-repo…
…rt-latex
- Loading branch information
1 parent
61b92d2
commit 301c8a9
Showing
3 changed files
with
55 additions
and
22 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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: 'Build with latexmk and upload artifacts' | ||
description: 'Build LaTeX source with latexmk and upload artifacts' | ||
inputs: | ||
job_engine: | ||
description: 'LaTeX engine to be used for this job' | ||
default: 'pdf' | ||
job_source: | ||
description: 'Input file name for this build job' | ||
default: 'main' | ||
job_artifact_suffix: | ||
description: 'Output filename suffix for this build job' | ||
default: '' | ||
runs: | ||
using: 'composite' | ||
steps: | ||
- uses: ./.github/actions/latexmk | ||
with: | ||
job_engine: ${{ inputs.job_engine }} | ||
job_source: ${{ inputs.job_source }} | ||
job_artifact_suffix: ${{ inputs.job_artifact_suffix }} | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: ${{ inputs.job_source }}${{ inputs.job_artifact_suffix }} | ||
path: | | ||
${{ inputs.job_source }}${{ inputs.job_artifact_suffix }}.pdf | ||
${{ inputs.job_source }}${{ inputs.job_artifact_suffix }}.log |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: 'Build with latexmk' | ||
description: 'Build LaTeX source with latexmk' | ||
inputs: | ||
job_engine: | ||
description: 'LaTeX engine to be used for this job' | ||
default: 'pdf' | ||
job_source: | ||
description: 'Input file name for this build job' | ||
default: 'main' | ||
job_artifact_suffix: | ||
description: 'Output filename suffix for this build job' | ||
default: '' | ||
runs: | ||
using: docker | ||
image: docker://texlive/texlive:latest | ||
entrypoint: '/bin/bash' | ||
args: | ||
- '-c' | ||
- latexmk -${{ inputs.job_engine }} -bibtex -gg -jobname=%A${{ inputs.job_artifact_suffix }} ${{ inputs.job_source }}.tex |
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