Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -488,3 +488,29 @@ jobs:
& $btExe --version
$env:PATH = "$binDir;$env:PATH"
& $btExe self update --check --channel stable

publish-crate:
needs:
- plan
- host
- announce
if: ${{ needs.announce.result == 'success' && !fromJson(needs.host.outputs.val).announcement_is_prerelease }}
runs-on: ubuntu-22.04
environment: release
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
BT_VERSION_STRING: ${{ needs.plan.outputs.release-version }}
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
ref: ${{ needs.plan.outputs.tag }}
persist-credentials: false

- name: Install Rust toolchain
run: rustup show active-toolchain || rustup toolchain install stable

- name: Verify package
run: cargo publish --dry-run --locked

- name: Publish to crates.io
run: cargo publish --locked
Loading
Loading