Skip to content

Commit 4eaf5bc

Browse files
authored
ci: attest release artifacts (#21)
1 parent a16cbe3 commit 4eaf5bc

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

‎.github/workflows/release.yml‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ jobs:
1717
name: Build (${{ matrix.target }})
1818
runs-on: ${{ matrix.runner }}
1919
timeout-minutes: 60
20+
permissions:
21+
contents: read
22+
id-token: write
23+
attestations: write
2024
strategy:
2125
fail-fast: false
2226
matrix:
@@ -56,6 +60,10 @@ jobs:
5660
shell: pwsh
5761
run: |
5862
Compress-Archive -Path target/${{ matrix.target }}/release/typdiff.exe -DestinationPath typdiff-${{ matrix.target }}.zip
63+
- name: Attest build provenance
64+
uses: actions/attest@1e69f48acb82d1966a394da916b4c1698aa569d6 # v4.2.2
65+
with:
66+
subject-path: typdiff-${{ matrix.target }}.*
5967
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
6068
with:
6169
name: typdiff-${{ matrix.target }}

‎README.md‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,14 @@ Compile the output with `typst compile` to get a PDF with visual diff markup.
6161

6262
## Installation
6363

64+
### With mise (recommended)
65+
66+
[mise](https://mise.jdx.dev/) installs the appropriate prebuilt binary for your platform and verifies GitHub Artifact Attestations when available.
67+
68+
```sh
69+
mise use -g github:sou1118/typdiff
70+
```
71+
6472
### From crates.io
6573

6674
```sh

0 commit comments

Comments
 (0)