Skip to content

Commit 73eaa34

Browse files
committed
actions: add publish crates.io
1 parent 35b0a48 commit 73eaa34

File tree

4 files changed

+39
-20
lines changed

4 files changed

+39
-20
lines changed

.github/workflows/release.yaml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,4 +169,23 @@ jobs:
169169
artifacts: "land-cli-nightly*"
170170
commit: ${{ github.sha }}
171171
body: |
172-
This is a "nightly" release of land-cli. It is automatically built from the latest commit on the main branch. It includes some new features and bug fixes that have not yet been released. Be careful when using this version of land-cli as it may be unstable.
172+
This is a "nightly" release of land-cli. It is automatically built from the latest commit on the main branch. It includes some new features and bug fixes that have not yet been released. Be careful when using this version of land-cli as it may be unstable.
173+
174+
publish-crates-io:
175+
name: update nightly release
176+
runs-on: ubuntu-latest
177+
if: startsWith(github.ref, 'refs/tags/v')
178+
needs: build
179+
steps:
180+
- uses: actions/checkout@v3
181+
- name: Update local toolchain
182+
run: |
183+
rustup update stable
184+
- name: Publish land-sdk-macro
185+
env:
186+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
187+
run: cargo publish -p land-sdk-macro
188+
- name: Publish land-sdk
189+
env:
190+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
191+
run: cargo publish -p land-sdk

Cargo.lock

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,17 @@ members = [
4141
]
4242

4343
[workspace.package]
44-
version = "0.1.0-rc.3"
44+
version = "0.1.0-rc.4"
4545
edition = "2021"
4646
authors = ["fuxiaohei <[email protected]>"]
4747

4848
[workspace.dependencies]
49-
land-worker = { path = "crates/worker", version = "0.1.0-rc.3" }
50-
land-sdk-macro = { path = "crates/sdk-macro", version = "0.1.0-rc.3" }
51-
land-sdk = { path = "crates/sdk", version = "0.1.0-rc.3" }
52-
land-core = { path = "crates/core", version = "0.1.0-rc.3" }
53-
land-dao = { path = "crates/dao", version = "0.1.0-rc.3" }
54-
land-storage = { path = "crates/storage", version = "0.1.0-rc.3" }
49+
land-worker = { path = "crates/worker", version = "0.1.0-rc.4" }
50+
land-sdk-macro = { path = "crates/sdk-macro", version = "0.1.0-rc.4" }
51+
land-sdk = { path = "crates/sdk", version = "0.1.0-rc.4" }
52+
land-core = { path = "crates/core", version = "0.1.0-rc.4" }
53+
land-dao = { path = "crates/dao", version = "0.1.0-rc.4" }
54+
land-storage = { path = "crates/storage", version = "0.1.0-rc.4" }
5555
anyhow = "1.0.75"
5656
axum = { version = "0.6.20", features = ["headers", "ws"] }
5757
clap = { version = "4.4.0", features = ["derive", "env"] }

crates/sdk/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Add this to your `Cargo.toml`:
1010
[dependencies]
1111
anyhow = "1.0.75"
1212
http = "0.2.9"
13-
land-sdk = "0.1.0-rc.3"
13+
land-sdk = "0.1.0-rc.4"
1414
wit-bindgen = "0.10.0"
1515

1616
[lib]

0 commit comments

Comments
 (0)