mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-20 12:38:43 +00:00
CI: Fix publish (#1760)
* Fix publish in release-cli.yml Using latest stable rust Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> * Fix publish in release.yml Use latest stable rust Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> * Run release-dry-run in merge queue only Running it twice on PR pipeline and merge queue pipeline only wastes time and causes rate limit. For PR that modifies release-dry-run and wants to test it, they can temporarily run release-dry-run on PR pipeline. Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> --------- Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
610504957f
commit
540fa79c6b
3 changed files with 4 additions and 16 deletions
17
.github/workflows/ci.yml
vendored
17
.github/workflows/ci.yml
vendored
|
@ -190,24 +190,9 @@ jobs:
|
||||||
- run: just avoid-dev-deps
|
- run: just avoid-dev-deps
|
||||||
- run: just lint
|
- run: just lint
|
||||||
|
|
||||||
pr-info:
|
|
||||||
outputs:
|
|
||||||
is-release: ${{ steps.meta.outputs.is-release }}
|
|
||||||
crate: ${{ steps.meta.outputs.crates-names }}
|
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- id: meta
|
|
||||||
if: github.event_name == 'pull_request'
|
|
||||||
uses: cargo-bins/release-meta@v1
|
|
||||||
with:
|
|
||||||
event-data: ${{ toJSON(github.event) }}
|
|
||||||
extract-notes-under: "### Release notes"
|
|
||||||
|
|
||||||
release-dry-run:
|
release-dry-run:
|
||||||
needs: pr-info
|
|
||||||
uses: ./.github/workflows/release-cli.yml
|
uses: ./.github/workflows/release-cli.yml
|
||||||
if: github.event_name != 'pull_request' || needs.pr-info.outputs.is-release == 'true'
|
if: github.event_name != 'pull_request'
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
with:
|
with:
|
||||||
info: |
|
info: |
|
||||||
|
|
2
.github/workflows/release-cli.yml
vendored
2
.github/workflows/release-cli.yml
vendored
|
@ -83,6 +83,8 @@ jobs:
|
||||||
with:
|
with:
|
||||||
name: minisign.pub
|
name: minisign.pub
|
||||||
|
|
||||||
|
- run: rustup toolchain install stable --no-self-update --profile minimal
|
||||||
|
|
||||||
- run: .github/scripts/ephemeral-crate.sh
|
- run: .github/scripts/ephemeral-crate.sh
|
||||||
|
|
||||||
- if: fromJSON(inputs.info).is-release != 'true' && fromJSON(inputs.info).crate != ''
|
- if: fromJSON(inputs.info).is-release != 'true' && fromJSON(inputs.info).crate != ''
|
||||||
|
|
1
.github/workflows/release.yml
vendored
1
.github/workflows/release.yml
vendored
|
@ -30,6 +30,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
- run: rustup toolchain install stable --no-self-update --profile minimal
|
||||||
- name: Push lib release tag
|
- name: Push lib release tag
|
||||||
if: needs.info.outputs.crate != 'cargo-binstall'
|
if: needs.info.outputs.crate != 'cargo-binstall'
|
||||||
uses: mathieudutour/github-tag-action@v6.2
|
uses: mathieudutour/github-tag-action@v6.2
|
||||||
|
|
Loading…
Add table
Reference in a new issue