-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (46 loc) · 1.46 KB
/
Copy pathrelease.yml
File metadata and controls
55 lines (46 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Release
# Build pinned, checksummed `rss` + `reir` binaries with build provenance on tag.
# This is the trust artifact a supply-chain gate should pin to (instead of @main
# / ambient PATH tools): download the release binary, verify the checksum, and
# verify provenance with `gh attestation verify`.
on:
push:
tags:
- "v*"
workflow_dispatch:
permissions:
contents: write
id-token: write
attestations: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Build release binaries
run: |
cargo build --release --bin rss -p rsscript
cargo build --release --bin reir -p reir
mkdir -p dist
cp target/release/rss dist/rss-linux-x86_64
cp target/release/reir dist/reir-linux-x86_64
- name: Checksums
working-directory: dist
run: sha256sum rss-linux-x86_64 reir-linux-x86_64 > SHA256SUMS
- name: Attest build provenance
uses: actions/attest-build-provenance@v1
with:
subject-path: |
dist/rss-linux-x86_64
dist/reir-linux-x86_64
- name: Upload release assets
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v2
with:
files: |
dist/rss-linux-x86_64
dist/reir-linux-x86_64
dist/SHA256SUMS