Validate github repo beforre running release pipeline #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
# run workflow only on numaproj/numaflow-rs repository | |
if: ${{ github.repository }} == "numaproj/numaflow-rs" | |
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 |