1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Publish to Crates.io
on:
release:
types:
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"
jobs:
publish:
name: Publish to Crates.io
runs-on: ubuntu-latest
permissions:
id-token: write # Required for OIDC token exchange
steps:
- name: Checkout Repository
uses: actions/checkout@v5
- name: Install Rust Toolchain
uses: dtolnay/rust-toolchain@stable
- name: Authenticate with crates.io
uses: rust-lang/crates-io-auth-action@v1
id: auth
- name: Publish proc-macro Crate (adapters-macros)
run: cargo publish --manifest-path crates/adapters-macros/Cargo.toml
env:
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}
- name: Wait for crates.io Index Update
run: sleep 20
- name: Publish Main Crate (adapters)
run: cargo publish --manifest-path Cargo.toml
env:
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}