Fix silent slide-build failures in CI #139
Workflow file for this run
This file contains hidden or 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
| name: Create Release on Push to current year branch | |
| on: | |
| push: | |
| branches: | |
| - "2026" | |
| # Temporary: validate the build on this CI fix branch (no release is created | |
| # because the create_release job is guarded by refs/heads/2026). Remove on merge. | |
| - "ci/fix-slide-build" | |
| workflow_dispatch: | |
| jobs: | |
| build_pdf: | |
| runs-on: ubuntu-latest | |
| container: ghcr.io/lukaspanni/pandoc-builder:latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Build PDFs | |
| shell: pwsh | |
| run: ./build.ps1 | |
| - name: Show Repo Content | |
| run: ls -R | |
| - name: Upload PDF artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: pdf-output | |
| path: build.zip | |
| create_release: | |
| needs: build_pdf | |
| if: ${{ github.ref == 'refs/heads/2026' }} | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Download PDF artifacts | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: pdf-output | |
| - name: Create Release | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| run: | | |
| ls -R | |
| gh release create $(date +'%Y-%m-%d-%H-%M') build.zip --generate-notes |