Merge rust-bitcoin/rust-bitcoin#1725: ci: do dry-run releases in CI

99cb83c3e9 ci: do dry-run releases in CI (Andrew Poelstra)

Pull request description:

  Will set this to "allow failure" since I think it'll fail during large parts of development, but this will be useful to avoid last-minute problems with releases.

ACKs for top commit:
  tcharding:
    ACK 99cb83c3e9
  Kixunil:
    ACK 99cb83c3e9

Tree-SHA512: 32a3e541deba26c0ef3b70a5cf9b4cf8efcebcb962258dd50ff77bd78b38cd9e749246e37133e9ddb806c558faa9cbbc9d8039061cbe888e8abb247c673325a6
This commit is contained in:
Andrew Poelstra 2023-03-23 16:24:32 +00:00
commit 3e31a785e1
No known key found for this signature in database
GPG Key ID: C588D63CE41B97C1
1 changed files with 42 additions and 0 deletions

42
.github/workflows/release.yml vendored Normal file
View File

@ -0,0 +1,42 @@
on:
push:
branches:
- master
- 0.28.x
- 0.29.x
- 'test-ci/**'
pull_request:
name: Release
jobs:
bitcoin:
name: Release - bitcoin
runs-on: ubuntu-latest
steps:
- name: Checkout Crate
uses: actions/checkout@v3
- name: Checkout Toolchain
uses: dtolnay/rust-toolchain@stable
- name: run cargo
run: cargo publish -p bitcoin --dry-run
private:
name: Release - private
runs-on: ubuntu-latest
steps:
- name: Checkout Crate
uses: actions/checkout@v3
- name: Checkout Toolchain
uses: dtolnay/rust-toolchain@stable
- name: run cargo
run: cargo publish -p bitcoin-private --dry-run
hashes:
name: Release - bitcoin_hashes
runs-on: ubuntu-latest
steps:
- name: Checkout Crate
uses: actions/checkout@v3
- name: Checkout Toolchain
uses: dtolnay/rust-toolchain@stable
- name: run cargo
run: cargo publish -p bitcoin_hashes --dry-run