Skip to content

Commit 94b5bfa

Browse files
committed
Add crates.io release workflow
1 parent d831052 commit 94b5bfa

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Publish SDK to crates.io
2+
on:
3+
push:
4+
tags: ['rust-sdk-v*']
5+
jobs:
6+
publish:
7+
runs-on: ubuntu-latest
8+
environment: sdk-release
9+
permissions:
10+
id-token: write
11+
steps:
12+
- uses: actions/checkout@v5
13+
- uses: rust-lang/crates-io-auth-action@v1
14+
id: auth
15+
- run: cargo publish -p dstack-sdk-types
16+
env:
17+
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}
18+
- run: cargo publish -p dstack-sdk
19+
env:
20+
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}
21+

0 commit comments

Comments
 (0)