-
-
Notifications
You must be signed in to change notification settings - Fork 25
74 lines (65 loc) · 1.74 KB
/
develop.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
71
72
73
74
name: 🌸 Build
permissions:
contents: write
on:
push:
branches: [ "main" ]
paths-ignore:
- 'doc/**'
- '.editorconfig'
- '.gitignore'
- 'Copyright'
- 'README.md'
- 'RELEASE_NOTES'
pull_request:
branches: [ "main" ]
paths-ignore:
- 'doc/**'
- '.editorconfig'
- '.gitignore'
- 'Copyright'
- 'README.md'
- 'RELEASE_NOTES'
jobs:
build:
name: 🌸 Build
runs-on: macos-14
steps:
- name: 👀 Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive
token: ${{ secrets.GH_PAT }}
- name: 🐧 set up Swift
uses: swift-actions/setup-swift@v2
with:
swift-version: "5.10.1"
- name: ☕️ set up JDK
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'zulu'
cache: gradle
- name: 🧬 Build
env:
scheme: ${{ 'default' }}
DEVELOPER_DIR: /Applications/Xcode_15.4.app/Contents/Developer
run: |
make all
- name: 🎊 Release Notes
run: |
echo "version_code=$(git rev-list --count HEAD)" >> $GITHUB_ENV
echo "build_id=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
echo version_name="v1.0 $(git rev-parse --short HEAD)" >> $GITHUB_ENV
- name: 🎉 Publish Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/heads/main')
with:
name: ${{ env.version_name }}
tag_name: v1.0.${{ env.version_code }}
make_latest: true
files: |
build/*.apk
build/*.ipa
build/*.aab