44 lines
1.5 KiB
YAML
44 lines
1.5 KiB
YAML
name: Automated Manual Build
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- 'codex/assignment5-*'
|
|
jobs:
|
|
manual:
|
|
runs-on: latex-local
|
|
timeout-minutes: 20
|
|
permissions:
|
|
contents: read
|
|
steps:
|
|
- name: Check out triggering revision
|
|
uses: https://github.com/actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
|
|
with:
|
|
ref: ${{ gitea.sha }}
|
|
fetch-depth: 1
|
|
persist-credentials: false
|
|
- name: Compile manual with commit and run metadata
|
|
env:
|
|
GITEA_SHA: ${{ gitea.sha }}
|
|
GITEA_RUN_NUMBER: ${{ gitea.run_number }}
|
|
run: sh ci/manual/build.sh
|
|
- name: Upload verified manual PDF
|
|
uses: https://github.com/actions/upload-artifact@c24449f33cd45d4826c6702db7e49f7cdb9b551d # v3-node20; legacy artifact protocol for Gitea
|
|
with:
|
|
name: manual-pdf-build-${{ gitea.run_number }}
|
|
path: build/manual/2026F-SSW-590-DevOps-Group-1.pdf
|
|
if-no-files-found: error
|
|
retention-days: 14
|
|
- name: Upload build diagnostics
|
|
if: always()
|
|
uses: https://github.com/actions/upload-artifact@c24449f33cd45d4826c6702db7e49f7cdb9b551d # v3-node20
|
|
with:
|
|
name: manual-diagnostics-build-${{ gitea.run_number }}
|
|
path: |
|
|
build/manual/build-info.txt
|
|
build/manual/toolchain-packages.txt
|
|
build/manual/compile-console.txt
|
|
build/manual/pdf-sha256.txt
|
|
if-no-files-found: warn
|
|
retention-days: 14
|