-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (35 loc) · 841 Bytes
/
Copy pathrelease.yml
File metadata and controls
41 lines (35 loc) · 841 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
name: Release DMG
on:
push:
tags:
- "v*"
workflow_dispatch:
permissions:
contents: write
jobs:
build:
runs-on: macos-14
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build DMG
run: |
VERSION="${GITHUB_REF_NAME#v}"
if [ "$VERSION" = "$GITHUB_REF_NAME" ]; then
VERSION="0.1.0"
fi
./Scripts/package-dmg.sh "$VERSION"
- name: Upload DMG artifact
uses: actions/upload-artifact@v4
with:
name: Clawd-DMG
path: |
output/*.dmg
output/*.sha256
- name: Publish GitHub Release
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v2
with:
files: |
output/*.dmg
output/*.sha256