Something went wrong. Try again.
cv in typst with auto build and release
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344name: 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