Skip to content

Commit

Permalink
chore: Add cargo publish (#74)
Browse files Browse the repository at this point in the history
* Add license and do not publish types

* Publish on release
  • Loading branch information
nahsi authored Apr 25, 2023
1 parent 02bf590 commit db09cde
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,16 @@ jobs:
run: npm publish --access public
working-directory: aqua

- name: Publish to crates.io
working-directory: ./service
run: |
cargo ws publish \
--no-git-commit \
--allow-dirty \
--from-git \
--skip-published \
--yes
- name: Create builtin distribution package
run: ./builtin-package/package.sh

Expand Down
1 change: 1 addition & 0 deletions service/distro/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ version = "0.5.11"
description = "distribution of aqua ipfs service"
edition = "2021"
build = "build.rs"
license = "Apache-2.0"
include = [ "/src", "/ipfs-service", "build.rs", "Cargo.toml" ]

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
1 change: 1 addition & 0 deletions service/types/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name = "types"
version = "0.5.11"
edition = "2018"
publish = false

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand Down

0 comments on commit db09cde

Please sign in to comment.