Debian Codegraph @

.github/workflows/rust-release.yml

raw
1 #
2 # Copyright 2023 The Sigstore Authors.
3 #
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
7 #
8 # http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15
16 on:
17 push:
18 tags:
19 - 'release/rust/v*'
20
21 permissions: {}
22
23 name: release Rust crate
24
25 jobs:
26 publish:
27 name: Publish to crates.io
28 runs-on: ubuntu-latest
29 permissions:
30 contents: read
31 id-token: write # needed for trusted publishing to crates.io
32
33 steps:
34 - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
35 with:
36 persist-credentials: false
37
38 - uses: rust-lang/crates-io-auth-action@bbd81622f20ce9e2dd9622e3218b975523e45bbe # v1.0.4
39 id: auth
40
41 - run: RUST_ACTION='publish -p sigstore_protobuf_specs' make rust
42 env:
43 CARGO_REGISTRY_TOKEN: "${{ steps.auth.outputs.token }}"