Skip to content
This repository was archived by the owner on Sep 7, 2025. It is now read-only.

Commit 17f9487

Browse files
ci(release): add workflow to build and upload binaries on GitHub release
Signed-off-by: Alexander Knott <alexander.knott@r-kom.de>
1 parent f221c15 commit 17f9487

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/release.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Build & Publish Release Asset
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
build-and-upload:
9+
runs-on: macos-latest
10+
11+
steps:
12+
- name: Check out code
13+
uses: actions/checkout@v4
14+
15+
- name: Install Rust (stable)
16+
uses: actions-rs/toolchain@v1
17+
with:
18+
toolchain: stable
19+
20+
- name: Build release binary
21+
run: cargo build --release
22+
23+
- name: Upload binary to GitHub Release
24+
uses: actions/upload-release-asset@v1
25+
with:
26+
upload_url: ${{ github.event.release.upload_url }}
27+
asset_path: target/release/sapphire
28+
asset_name: sapphire-${{ github.event.release.tag_name }}-macos-arm64
29+
asset_content_type: application/octet-stream

0 commit comments

Comments
 (0)