-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (34 loc) · 985 Bytes
/
release.yml
File metadata and controls
43 lines (34 loc) · 985 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Release
on:
push:
tags:
- 'v*.*.*'
permissions:
contents: write
jobs:
build:
runs-on: macos-14
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- run: bun install
- name: Extract version from tag
id: version
run: echo "VERSION=${GITHUB_REF_NAME#v}" >> "$GITHUB_OUTPUT"
- name: Build binary
run: |
bun build --compile --minify \
--define "__APP_VERSION__='\"${{ steps.version.outputs.VERSION }}\"'" \
src/index.ts --outfile dist/carecom-darwin-arm64
- name: Generate checksum
working-directory: dist
run: shasum -a 256 carecom-darwin-arm64 > checksums.txt
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
files: |
dist/carecom-darwin-arm64
dist/checksums.txt