-
-
Notifications
You must be signed in to change notification settings - Fork 2
70 lines (55 loc) · 1.82 KB
/
release.yml
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
68
69
70
# Builds and releases a .dmg file.
name: Release Barista
on:
workflow_dispatch:
pull_request:
jobs:
build-release:
uses: ./.github/workflows/build.yml
with:
save: true
upload-release:
name: upload-release
runs-on: macos-14
needs: [build-release]
steps:
- name: Get build artifacts
uses: actions/download-artifact@6b208ae046db98c579e8a3aa621ab581ff575935 # v4.1.1
with:
pattern: build_artifacts
path: build_artifacts
merge-multiple: true
- name: Generate dmg
run: |
npm install --global create-dmg
mkdir release
create-dmg "build_artifacts/Barista.xcarchive/Products/Applications/Barista.app" "release"
- name: Print out all release files
run: |
echo "Generated $(ls ./release | wc -l) files:"
du -h -d 0 ./release/*
- name: Get app version and build number
run: |
APP_VERSION=$(xcrun agvtool mvers -terse1)
APP_BUILD=$(xcrun agvtool vers -terse)
echo "APP_VERSION=$APP_VERSION" >> $GITHUB_ENV
echo "APP_BUILD=$APP_BUILD" >> $GITHUB_ENV
- name: Create release and add release files
uses: softprops/action-gh-release@20e085ccc73308c2c8e43ab8da4f8d7ecbb94d4e # 2.0.1
with:
token: ${{ secrets.GITHUB_TOKEN }}
prerelease: false
tag_name: ${{ env.APP_VERSION }}-${{env.APP_BUILD}}
draft: true
fail_on_unmatched_files: true
name: ${{ env.APP_VERSION }}-${{env.APP_BUILD}} Release
body: |
<!-- Write summary here -->
---
## Bug Fixes
## Features
## Changes
## Other
## Internal Changes
files: |
./build/*