diff --git a/.gitea/workflows/manual-pdf.yml b/.gitea/workflows/manual-pdf.yml index 362f884..270d917 100644 --- a/.gitea/workflows/manual-pdf.yml +++ b/.gitea/workflows/manual-pdf.yml @@ -2,13 +2,14 @@ # The runner label must match the registered self-managed Gitea runner. name: manual-pdf + on: push: branches: - main - chapter3-failure-test - chapter5-sre-monitoring - workflow_dispatch: + workflow_dispatch: jobs: build-manual: @@ -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 +