Skip to content

Publish to crates.io #2

Publish to crates.io

Publish to crates.io #2

Workflow file for this run

name: Publish to crates.io
on:
push:
tags: ['v*'] # Triggers when pushing tags starting with 'v'
workflow_dispatch: # Allows manual triggering of the workflow
jobs:
publish:
runs-on: ubuntu-latest
permissions:
id-token: write # Required for OIDC token exchange
steps:
- uses: actions/checkout@v4
- uses: rust-lang/crates-io-auth-action@v1
id: auth
- name: Publish typesense_derive
run: cargo publish
working-directory: typesense_derive
env:
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}
- name: Publish typesense_codegen
run: cargo publish
working-directory: typesense_codegen
env:
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}
- name: Publish typesense
run: cargo publish
working-directory: typesense
env:
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}