Release on crates.io #14
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 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 }} |