Skip to content

Commit ee6d897

Browse files
committed
Add release artifact build
1 parent b3d353f commit ee6d897

File tree

1 file changed

+27
-7
lines changed

1 file changed

+27
-7
lines changed

.github/workflows/ci.yml

Lines changed: 27 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
1-
name: Build Artifacts
1+
name: Build and Release Artifacts
22
on:
3-
pull_request:
43
push:
5-
branches:
6-
- '**'
74
tags:
85
- 'v*'
96
concurrency:
10-
group: ${{ github.event_name != 'pull_request' && github.run_id || github.ref }}
7+
group: ${{ github.run_id }}
118
cancel-in-progress: true
129
env:
1310
MAKEJOBS: '-j10'
@@ -38,7 +35,7 @@ jobs:
3835
mkdir -p bitcoin-${{ steps.version.outputs.VERSION }}-x86_64-linux-gnu/bin
3936
cp src/bitcoind src/bitcoin-cli src/bitcoin-tx src/bitcoin-util src/bitcoin-wallet bitcoin-${{ steps.version.outputs.VERSION }}-x86_64-linux-gnu/bin/
4037
tar -czf bitcoin-${{ steps.version.outputs.VERSION }}-x86_64-linux-gnu.tar.gz bitcoin-${{ steps.version.outputs.VERSION }}-x86_64-linux-gnu
41-
- name: Upload artifact
38+
- name: Upload temporary artifact
4239
uses: actions/upload-artifact@v4
4340
with:
4441
name: linux-artifact
@@ -66,9 +63,32 @@ jobs:
6663
mkdir -p bitcoin-${{ steps.version.outputs.VERSION }}-arm64-apple-darwin/bin
6764
cp src/bitcoind src/bitcoin-cli src/bitcoin-tx src/bitcoin-util src/bitcoin-wallet bitcoin-${{ steps.version.outputs.VERSION }}-arm64-apple-darwin/bin/
6865
tar -czf bitcoin-${{ steps.version.outputs.VERSION }}-arm64-apple-darwin.tar.gz bitcoin-${{ steps.version.outputs.VERSION }}-arm64-apple-darwin
69-
- name: Upload artifact
66+
- name: Upload temporary artifact
7067
uses: actions/upload-artifact@v4
7168
with:
7269
name: macos-artifact
7370
path: bitcoin-${{ steps.version.outputs.VERSION }}-arm64-apple-darwin.tar.gz
7471

72+
release:
73+
name: Create Release and Upload Assets
74+
runs-on: ubuntu-latest
75+
needs: [build-linux, build-macos]
76+
steps:
77+
- name: Checkout
78+
uses: actions/checkout@v5
79+
- name: Download Linux artifact
80+
uses: actions/download-artifact@v4
81+
with:
82+
name: linux-artifact
83+
- name: Download macOS artifact
84+
uses: actions/download-artifact@v4
85+
with:
86+
name: macos-artifact
87+
- name: Release
88+
uses: softprops/action-gh-release@v2
89+
with:
90+
files: |
91+
bitcoin-*.tar.gz
92+
name: Release ${{ github.ref_name }}
93+
generate_release_notes: true
94+

0 commit comments

Comments
 (0)