Skip to content

Release on crates.io #14

Release on crates.io

Release on crates.io #14

Workflow file for this run

name: Release on crates.io
on:
push:
# Pattern matched against refs/tags
tags:
- '*' # Push events to every tag not containing /
# Allow manual triggering
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
build-and-test:
uses: ./.github/workflows/setup_and_test.yml
publish:
name: Publish
runs-on: ubuntu-latest
needs: build-and-test
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Publish robusta_jni release
run: cargo publish --token ${CRATES_TOKEN}
env:
CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }}
- name: Publish robusta-codegen release
working-directory: ./robusta-codegen
run: cargo publish --token ${CRATES_TOKEN}
env:
CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }}