Skip to content

Commit 2b17dde

Browse files
committed
fix: ensure stegano-seasmoke is published before all the other crates
Signed-off-by: Sven Kanoldt <[email protected]>
1 parent d97e1de commit 2b17dde

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,21 @@ jobs:
1818
publish:
1919
name: cargo publish
2020
needs: doing-a-build
21+
strategy:
22+
fail-fast: false
23+
matrix:
24+
crate: ["stegano-seasmoke", "stegano-core", "stegano-cli"]
2125
runs-on: ubuntu-latest
2226
steps:
2327
- uses: actions/checkout@v4
2428
- name: setup | rust
2529
uses: dtolnay/rust-toolchain@stable
26-
- run: cargo publish --manifest-path crates/stegano-core/Cargo.toml
30+
- run: cargo publish --manifest-path crates/${{ matrix.crate }}/Cargo.toml
2731
env:
2832
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
2933
# without this sleep there was an error that the just published version is not available for stegano-cli as dependency
3034
- name: waiting for crates.io to get ready with stegano-core latest version
3135
run: sleep 60
32-
- run: cargo publish --manifest-path crates/stegano-cli/Cargo.toml
33-
env:
34-
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
3536

3637
release:
3738
name: github release

crates/stegano-seasmoke/Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
name = "stegano-seasmoke"
33
version = "0.1.0"
44
edition = "2021"
5-
publish = false
6-
description = "Providing cryptography functionality as library"
5+
description = "Providing cryptography functionality as library for stegano-core"
76
license.workspace = true
87

98
[lib]

0 commit comments

Comments
 (0)