Skip to content

Commit

Permalink
Release pipeline
Browse files Browse the repository at this point in the history
Signed-off-by: Sreekanth <prsreekanth920@gmail.com>
  • Loading branch information
BulkBeing committed Oct 8, 2024
1 parent c9db0f0 commit 961f394
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Rust
name: Tests

on:
push:
Expand All @@ -9,6 +9,10 @@ on:
branches:
- main

defaults:
run:
shell: bash

jobs:
build:
name: Clippy and Unit Tests
Expand Down
40 changes: 40 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Release

on:
push:
tags:
- 'v*'
branches:
- main
- dev-release*

defaults:
run:
shell: bash

jobs:
build:
name: Publish to crates.io
runs-on: ubuntu-24.04
timeout-minutes: 12
steps:
- name: Check out code
uses: actions/checkout@v4

- name: Install Rust
uses: actions-rust-lang/setup-rust-toolchain@v1

- name: Install dependencies
run: sudo apt-get install -y protobuf-compiler

- name: Lint
run: make lint

- name: Run tests
run: make test

- name: Cargo login
run: cargo login ${{ secrets.CARGO_PUBLISH }}

- name: Dry run Cargo Publish
run: cargo publish --dry-run

0 comments on commit 961f394

Please sign in to comment.