Skip to content

Commit

Permalink
feat: added publishing steps
Browse files Browse the repository at this point in the history
  • Loading branch information
raphael-goetz committed Aug 21, 2024
1 parent 6e7e0db commit 8839ccd
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 2 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,30 @@ jobs:
run: bundle exec rake release:rubygem_push
- name: Wait for release
run: gem exec rubygems-await pkg/*.gem
crates:
runs-on: ubuntu-latest

environment: packages

defaults:
run:
shell: bash
working-directory: build/rust

steps:
# Set up
- uses: actions/checkout@v4
- name: Setup rust
run: rustup update --no-self-update stable
- name: Install protoc
run: curl -LO https://github.com/protocolbuffers/protobuf/releases/download/v28.0-rc1/protoc-28.0-rc-1-linux-x86_64.zip && unzip protoc-28.0-rc-1-linux-x86_64.zip -d ${{ runner.temp }}/proto && chmod +x ${{ runner.temp }}/proto/bin/protoc && ${{ runner.temp }}/proto/bin/protoc --version
- name: Set version
run: sed -i "s/version = \"0.0.0\"/version = \"${{ github.ref_name }}\"/" Cargo.toml
- name: Cargo Login
run: cargo login ${{secrets.CARGO_REGISTRY_TOKEN}}

# Release
- name: Publish crate
run: PATH=${{ runner.temp }}/proto/bin:$PATH cargo publish --allow-dirty
env:
RUST_BACKTRACE: 'full'
2 changes: 1 addition & 1 deletion build/rust/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/rust/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
version = "0.0.1"
version = "0.0.0"
name = "tucana-internal"
edition = "2021"
description = "The rust crate for the internal gRPC communication of Code0"
Expand Down

0 comments on commit 8839ccd

Please sign in to comment.