Skip to content

Commit d97e1de

Browse files
committed
fix: ci cargo publish did lack the env var
Signed-off-by: Sven Kanoldt <[email protected]>
1 parent 66007ca commit d97e1de

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,25 @@ jobs:
1616
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
1717

1818
publish:
19-
name: post / cargo publish
19+
name: cargo publish
2020
needs: doing-a-build
2121
runs-on: ubuntu-latest
2222
steps:
2323
- uses: actions/checkout@v4
2424
- name: setup | rust
2525
uses: dtolnay/rust-toolchain@stable
2626
- run: cargo publish --manifest-path crates/stegano-core/Cargo.toml
27+
env:
28+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
2729
# without this sleep there was an error that the just published version is not available for stegano-cli as dependency
2830
- name: waiting for crates.io to get ready with stegano-core latest version
2931
run: sleep 60
30-
- env:
32+
- run: cargo publish --manifest-path crates/stegano-cli/Cargo.toml
33+
env:
3134
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
32-
run: cargo publish --manifest-path crates/stegano-cli/Cargo.toml
3335

3436
release:
35-
name: post / github release
37+
name: github release
3638
needs: publish
3739
runs-on: ubuntu-latest
3840
steps:

0 commit comments

Comments
 (0)