File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 38
38
GH_REPO : ${{ env.GITHUB_REPOSITORY }}
39
39
40
40
build_assets :
41
+ permissions :
42
+ id-token : write
43
+ contents : read
44
+ attestations : write
45
+
41
46
needs : create_release
42
47
43
48
strategy :
66
71
command : build
67
72
args : --release
68
73
69
- - run : |
74
+ - id : build
75
+ run : |
70
76
rustc --print cfg | grep = > rustc.vars
71
77
source rustc.vars
72
78
80
86
fi
81
87
gh release upload $RELEASE_TAG $ASSET_NAME
82
88
popd
89
+
90
+ echo "asset_path=target/release/$ASSET_NAME" >> $GITHUB_OUTPUT
83
91
env :
84
92
GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
85
93
GH_REPO : ${{ env.GITHUB_REPOSITORY }}
86
94
RELEASE_TAG : ${{ needs.create_release.outputs.release_tag }}
95
+
96
+ - uses : actions/attest-build-provenance@v1
97
+ with :
98
+ subject-path : ${{ steps.build.outputs.asset_path }}
You can’t perform that action at this time.
0 commit comments