Skip to content

Commit c0c670e

Browse files
authored
Merge pull request #370 from Dstack-TEE/crates-io-release
Add rust sdk release workflow
2 parents ef2d92a + ca4de5e commit c0c670e

File tree

1 file changed

+25
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)