This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
# The runner label must match the registered self-managed Gitea runner.
|
||||
name: manual-pdf
|
||||
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
@@ -17,6 +18,7 @@ jobs:
|
||||
- name: Check out source
|
||||
uses: actions/checkout@v4
|
||||
|
||||
|
||||
- name: Generate build metadata
|
||||
shell: cmd
|
||||
run: |
|
||||
@@ -29,6 +31,7 @@ jobs:
|
||||
echo \renewcommand{\WorkflowRunNumber}{%GITHUB_RUN_NUMBER%}>> devopsBuildMetadata.tex
|
||||
echo \renewcommand{\WorkflowRunAttempt}{%GITHUB_RUN_ATTEMPT%}>> devopsBuildMetadata.tex
|
||||
|
||||
|
||||
- name: Compile manual
|
||||
shell: cmd
|
||||
run: |
|
||||
@@ -36,9 +39,11 @@ jobs:
|
||||
if not exist devopsAssignment.pdf exit /b 1
|
||||
for %%A in (devopsAssignment.pdf) do if %%~zA LEQ 0 exit /b 1
|
||||
|
||||
|
||||
- name: Upload compiled PDF
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: devops-it-manual-${{ github.run_number }}-${{ github.sha }}
|
||||
path: devopsAssignment.pdf
|
||||
retention-days: 14
|
||||
|
||||
|
||||
Reference in New Issue
Block a user