-
-
Notifications
You must be signed in to change notification settings - Fork 1
68 lines (54 loc) · 1.7 KB
/
Copy pathrelease.yml
File metadata and controls
68 lines (54 loc) · 1.7 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Release
on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+'
jobs:
build-and-release:
runs-on: macos-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Xcode
run: |
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
xcodebuild -version
swift --version
- name: Resolve dependencies
run: swift package resolve
- name: Build
run: swift build -c release
- name: Verify build
run: |
echo "Build completed successfully!"
ls -la .build/release/
.build/release/caliper --version || echo "Version command not available"
- name: Extract version from tag
id: version
run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
- name: Create Release
uses: softprops/action-gh-release@v2
with:
name: Release ${{ steps.version.outputs.VERSION }}
body: |
## Caliper ${{ steps.version.outputs.VERSION }}
### Installation
**Using Mint:**
```bash
mint install kibotu/caliper@${{ steps.version.outputs.VERSION }}
```
**Manual build:**
```bash
git clone https://github.com/kibotu/caliper.git
cd caliper
git checkout ${{ steps.version.outputs.VERSION }}
swift build -c release
```
### Changes
See commit history for details.
files: |
.build/release/caliper
draft: false
prerelease: false