Skip to content

Commit

Permalink
actions: add publish crates.io
Browse files Browse the repository at this point in the history
  • Loading branch information
fuxiaohei committed Aug 28, 2023
1 parent 35b0a48 commit 73eaa34
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 20 deletions.
21 changes: 20 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -169,4 +169,23 @@ jobs:
artifacts: "land-cli-nightly*"
commit: ${{ github.sha }}
body: |
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.
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.
publish-crates-io:
name: update nightly release
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v')
needs: build
steps:
- uses: actions/checkout@v3
- name: Update local toolchain
run: |
rustup update stable
- name: Publish land-sdk-macro
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
run: cargo publish -p land-sdk-macro
- name: Publish land-sdk
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
run: cargo publish -p land-sdk
22 changes: 11 additions & 11 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,17 @@ members = [
]

[workspace.package]
version = "0.1.0-rc.3"
version = "0.1.0-rc.4"
edition = "2021"
authors = ["fuxiaohei <[email protected]>"]

[workspace.dependencies]
land-worker = { path = "crates/worker", version = "0.1.0-rc.3" }
land-sdk-macro = { path = "crates/sdk-macro", version = "0.1.0-rc.3" }
land-sdk = { path = "crates/sdk", version = "0.1.0-rc.3" }
land-core = { path = "crates/core", version = "0.1.0-rc.3" }
land-dao = { path = "crates/dao", version = "0.1.0-rc.3" }
land-storage = { path = "crates/storage", version = "0.1.0-rc.3" }
land-worker = { path = "crates/worker", version = "0.1.0-rc.4" }
land-sdk-macro = { path = "crates/sdk-macro", version = "0.1.0-rc.4" }
land-sdk = { path = "crates/sdk", version = "0.1.0-rc.4" }
land-core = { path = "crates/core", version = "0.1.0-rc.4" }
land-dao = { path = "crates/dao", version = "0.1.0-rc.4" }
land-storage = { path = "crates/storage", version = "0.1.0-rc.4" }
anyhow = "1.0.75"
axum = { version = "0.6.20", features = ["headers", "ws"] }
clap = { version = "4.4.0", features = ["derive", "env"] }
Expand Down
2 changes: 1 addition & 1 deletion crates/sdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Add this to your `Cargo.toml`:
[dependencies]
anyhow = "1.0.75"
http = "0.2.9"
land-sdk = "0.1.0-rc.3"
land-sdk = "0.1.0-rc.4"
wit-bindgen = "0.10.0"

[lib]
Expand Down

0 comments on commit 73eaa34

Please sign in to comment.