Publish to crates.io #1
This file contains hidden or 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: 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 | |
| - name: Publish typesense_codegen | |
| run: cargo publish | |
| working-directory: typesense_codegen | |
| - name: Publish typesense | |
| run: cargo publish | |
| working-directory: typesense |