Skip to content

Commit fcb60cc

Browse files
authored
chore: update cargo-dist, drop self-updater and PR release dry-run (#946)
1 parent 439c4db commit fcb60cc

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ permissions:
3939
# If there's a prerelease-style suffix to the version, then the release(s)
4040
# will be marked as a prerelease.
4141
on:
42-
pull_request:
4342
push:
4443
tags:
4544
- '**[0-9]+.[0-9]+.[0-9]+*'
@@ -66,7 +65,7 @@ jobs:
6665
# we specify bash to get pipefail; it guards against the `curl` command
6766
# failing. otherwise `sh` won't catch that `curl` returned non-0
6867
shell: bash
69-
run: "curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v0.29.0/cargo-dist-installer.sh | sh"
68+
run: "curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v0.30.3/cargo-dist-installer.sh | sh"
7069
- name: Cache dist
7170
uses: actions/upload-artifact@v4
7271
with:
@@ -223,8 +222,8 @@ jobs:
223222
- plan
224223
- build-local-artifacts
225224
- build-global-artifacts
226-
# Only run if we're "publishing", and only if local and global didn't fail (skipped is fine)
227-
if: ${{ always() && needs.plan.outputs.publishing == 'true' && (needs.build-global-artifacts.result == 'skipped' || needs.build-global-artifacts.result == 'success') && (needs.build-local-artifacts.result == 'skipped' || needs.build-local-artifacts.result == 'success') }}
225+
# Only run if we're "publishing", and only if plan, local and global didn't fail (skipped is fine)
226+
if: ${{ always() && needs.plan.result == 'success' && needs.plan.outputs.publishing == 'true' && (needs.build-global-artifacts.result == 'skipped' || needs.build-global-artifacts.result == 'success') && (needs.build-local-artifacts.result == 'skipped' || needs.build-local-artifacts.result == 'success') }}
228227
env:
229228
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
230229
runs-on: "ubuntu-22.04"

dist-workspace.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ members = ["cargo:."]
44
# Config for 'dist'
55
[dist]
66
# The preferred dist version to use in CI (Cargo.toml SemVer syntax)
7-
cargo-dist-version = "0.29.0"
7+
cargo-dist-version = "0.30.3"
88
# CI backends to support
99
ci = "github"
1010
# The installers to generate for each app
@@ -16,7 +16,10 @@ install-path = "CARGO_HOME"
1616
# The preferred Rust toolchain to use in CI (rustup toolchain syntax)
1717
rust-toolchain-version = "1.89"
1818
# Whether to install an updater program
19-
install-updater = true
19+
install-updater = false
20+
# Don't run the release dry-run on pull requests; only fire on version tags.
21+
# (PR validation lives in ci.yml.)
22+
pr-run-mode = "skip"
2023
# A GitHub repo to push Homebrew formulas to
2124
tap = "txpipe/homebrew-tap"
2225
# Publish jobs to run in CI

0 commit comments

Comments
 (0)