Add Notes 2025/05/08 #97
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: | |
| - 2025 | |
| 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: 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/2025' }} | |
| 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 |