mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-24 14:28:42 +00:00
Fix release-cli.yml
: Do not dry run cargo-publish (#1487)
* Fix `release-cli.yml`: Do not dry run `cargo-publish` If dependencies of `carog-binstall` is bumped, then `cargo-publish` dry run will fail since the dependency has not published yet Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> * Speedup step publish in `release-cli.yml` Use `just-setup` to cache rust/zig compilation, also disable all features to reduce dependencies pulled in. Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> * `release-cli.yml`: Restore rust cache before ephermal-crate.sh is run which writes the key to `Cargo.toml` and invalidates the cache. Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> --------- Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
86237aa611
commit
26b6db2244
1 changed files with 5 additions and 5 deletions
10
.github/workflows/release-cli.yml
vendored
10
.github/workflows/release-cli.yml
vendored
|
@ -82,6 +82,9 @@ jobs:
|
|||
- uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: minisign.pub
|
||||
|
||||
- uses: ./.github/actions/just-setup
|
||||
|
||||
- run: .github/scripts/ephemeral-crate.sh
|
||||
|
||||
- if: fromJSON(inputs.info).is-release != 'true'
|
||||
|
@ -89,10 +92,7 @@ jobs:
|
|||
env:
|
||||
crate: ${{ fromJSON(inputs.info).crate }}
|
||||
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
|
||||
run: |
|
||||
set -ex
|
||||
cargo publish -p "$crate" --allow-dirty --dry-run
|
||||
cargo package --no-verify -p "$crate" --allow-dirty
|
||||
run: cargo package -p "$crate" --allow-dirty --no-default-features
|
||||
- if: fromJSON(inputs.info).is-release != 'true'
|
||||
name: Upload crate package as artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
|
@ -105,7 +105,7 @@ jobs:
|
|||
env:
|
||||
crate: ${{ fromJSON(inputs.info).crate }}
|
||||
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
|
||||
run: cargo publish -p "$crate" --allow-dirty
|
||||
run: cargo publish -p "$crate" --allow-dirty --no-default-features
|
||||
|
||||
- if: fromJSON(inputs.info).is-release == 'true'
|
||||
name: Make release latest
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue