mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-27 04:54:21 +01:00
feat(dist): enable github attestations
This commit is contained in:
6
.github/workflows/release.yml
vendored
6
.github/workflows/release.yml
vendored
@@ -13,7 +13,9 @@
|
||||
|
||||
name: Release
|
||||
permissions:
|
||||
"attestations": "write"
|
||||
"contents": "write"
|
||||
"id-token": "write"
|
||||
|
||||
# This task will run whenever you push a git tag that looks like a version
|
||||
# like "1.0.0", "v0.1.0-prerelease.1", "my-app/0.1.0", "releases/v1.0.0", etc.
|
||||
@@ -132,6 +134,10 @@ jobs:
|
||||
# Actually do builds and make zips and whatnot
|
||||
cargo dist build ${{ needs.plan.outputs.tag-flag }} --print=linkage --output-format=json ${{ matrix.dist_args }} > dist-manifest.json
|
||||
echo "cargo dist ran successfully"
|
||||
- name: Attest
|
||||
uses: actions/attest-build-provenance@v1
|
||||
with:
|
||||
subject-path: "target/distrib/*${{ join(matrix.targets, ', ') }}*"
|
||||
- id: cargo-dist
|
||||
name: Post-build
|
||||
# We force bash here just because github makes it really hard to get values up
|
||||
|
||||
@@ -36,6 +36,8 @@ install-path = "~/.limbo"
|
||||
install-updater = true
|
||||
# Whether to consider the binaries in a package for distribution (defaults true)
|
||||
dist = false
|
||||
# Whether to enable GitHub Attestations
|
||||
github-attestations = true
|
||||
|
||||
[profile.dist]
|
||||
inherits = "release"
|
||||
|
||||
Reference in New Issue
Block a user