diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0e30059..cc15188 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -81,11 +81,22 @@ jobs: - name: Install Rust toolchain uses: dtolnay/rust-toolchain@stable - - name: Dry-run publish - run: cargo publish --dry-run + - name: Dry-run publish all crates + run: | + cargo publish --dry-run -p layer-shika-domain + cargo publish --dry-run -p layer-shika-adapters + cargo publish --dry-run -p layer-shika-composition + cargo publish --dry-run -p layer-shika - - name: Publish to crates.io - run: cargo publish --token ${{ secrets.CARGO_REGISTRY_TOKEN }} + - name: Publish crates to crates.io (in dependency order) + run: | + cargo publish --token ${{ secrets.CARGO_REGISTRY_TOKEN }} -p layer-shika-domain + sleep 10 + cargo publish --token ${{ secrets.CARGO_REGISTRY_TOKEN }} -p layer-shika-adapters + sleep 10 + cargo publish --token ${{ secrets.CARGO_REGISTRY_TOKEN }} -p layer-shika-composition + sleep 10 + cargo publish --token ${{ secrets.CARGO_REGISTRY_TOKEN }} -p layer-shika create-release: name: Create GitHub Release diff --git a/crates/adapters/Cargo.toml b/crates/adapters/Cargo.toml index 9cf6c0d..99a2d9a 100644 --- a/crates/adapters/Cargo.toml +++ b/crates/adapters/Cargo.toml @@ -7,9 +7,8 @@ repository.workspace = true rust-version.workspace = true keywords.workspace = true categories.workspace = true -description = "Adapters layer for layer-shika" +description = "Adapters layer for layer-shika (internal implementation crate)" readme = "../../README.md" -publish = false [lints] workspace = true diff --git a/crates/composition/Cargo.toml b/crates/composition/Cargo.toml index 48902e5..f8cd747 100644 --- a/crates/composition/Cargo.toml +++ b/crates/composition/Cargo.toml @@ -7,9 +7,8 @@ repository.workspace = true rust-version.workspace = true keywords.workspace = true categories.workspace = true -description = "A layer shell library crate with Slint UI" +description = "Composition layer for layer-shika (internal implementation crate)" readme = "../../README.md" -publish = false [lints] workspace = true diff --git a/crates/domain/Cargo.toml b/crates/domain/Cargo.toml index 4297089..5ce68d7 100644 --- a/crates/domain/Cargo.toml +++ b/crates/domain/Cargo.toml @@ -7,9 +7,8 @@ repository.workspace = true rust-version.workspace = true keywords.workspace = true categories.workspace = true -description = "Domain layer for layer-shika" +description = "Domain layer for layer-shika (internal implementation crate)" readme = "../../README.md" -publish = false [lints] workspace = true