name: Release permissions: contents: write id-token: write attestations: write on: workflow_dispatch: push: branches: ["master"] paths: ["*.typ", "*.yaml", "*.bib"] jobs: Workflow: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v7 - name: Install Nix uses: cachix/install-nix-action@v31 with: nix_path: nixpkgs=channel:nixpkgs-unstable - name: Build run: nix run nixpkgs#typst -- compile main.typ cv.pdf - name: Tag run: echo "TAG=$(date +%Y.%m.%d.%H.%M.%S)" >> ${GITHUB_ENV} - name: Release uses: softprops/action-gh-release@v3 with: tag_name: ${{ env.TAG }} files: | cv.pdf - name: Attest uses: actions/attest-build-provenance@v4 with: subject-path: cv.pdf