Skip to content

Commit

Permalink
workflows: add rust-release (sigstore#88)
Browse files Browse the repository at this point in the history
* workflows: add rust-release

Signed-off-by: William Woodruff <william@trailofbits.com>

* Cargo: bump RC

...so that we have something to test with the new workflow.

Signed-off-by: William Woodruff <william@trailofbits.com>

---------

Signed-off-by: William Woodruff <william@trailofbits.com>
  • Loading branch information
woodruffw authored Jul 10, 2023
1 parent fef6971 commit 5483830
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
36 changes: 36 additions & 0 deletions .github/workflows/rust-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#
# Copyright 2023 The Sigstore Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

on:
push:
tags:
- 'release/rust/v*'

name: release Rust crate

jobs:
publish:
name: Publish to crates.io
runs-on: ubuntu-latest
defaults:
run:
working-directory: gen/pb-rust

steps:
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0

- run: cargo publish
env:
CARGO_REGISTRY_TOKEN: "${{ secrets.CARGO_REGISTRY_TOKEN }}"
2 changes: 1 addition & 1 deletion gen/pb-rust/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "sigstore_protobuf_specs"
version = "0.1.0-rc.0"
version = "0.1.0-rc.1"
exclude = ["codegen/"]
authors = ["Sigstore Authors <sigstore-dev@googlegroups.com>"]
edition = "2021"
Expand Down

0 comments on commit 5483830

Please sign in to comment.