-
-
Notifications
You must be signed in to change notification settings - Fork 108
82 lines (79 loc) · 3.01 KB
/
develop-push.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
75
76
77
78
79
80
81
82
# build a new alpha release
name: develop-push
# Controls when the action will run.
on:
# Triggers the workflow on push
push:
branches: [ develop ]
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
buildAndPublishAlpha:
# The type of runner that the job will run on
runs-on: ['ARM64', 'self-hosted']
env:
APP_NAME: "Monal"
APP_DIR: "Monal.alpha.app"
BUILD_TYPE: "Alpha"
ALPHA_UPLOAD_SECRET: ${{ secrets.ALPHA_UPLOAD_SECRET }}
EXPORT_OPTIONS_CATALYST_APP_EXPORT: "../scripts/exportOptions/Alpha_Catalyst_ExportOptions.plist"
EXPORT_OPTIONS_IOS: "../scripts/exportOptions/Alpha_iOS_ExportOptions.plist"
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: actions/checkout@v3
with:
clean: true
submodules: true
- name: Fetch tags
run: git fetch --tags
- name: Checkout submodules
run: git submodule update -f --init --remote
- name: Import TURN secrets
run: |
if [[ -e "/Users/ci/secrets.monal_alpha" ]]; then
echo "#import \"/Users/ci/secrets.monal_alpha\"" > Monal/Classes/secrets.h
fi
- name: Make our build scripts executable
run: chmod +x ./scripts/build.sh
- name: Run build
run: ./scripts/build.sh
- run: |
cd Monal/build/app/tar_release
tar -cf "../$APP_NAME.tar" "$APP_DIR"
cd ../../../..
- name: save changelog
env:
ID: ${{github.event.head_commit.id}}
TIMESTAMP: ${{github.event.head_commit.timestamp}}
MESSAGE: ${{github.event.head_commit.message}}
run: |
echo "ID: $ID" > changes.txt
echo "Timestamp: $TIMESTAMP" >> changes.txt
echo "$MESSAGE" >> changes.txt
- name: Uploading to alpha site
run: ./scripts/uploadAlpha.sh
- name: Notarize catalyst
run: xcrun notarytool submit ./Monal/build/app/Monal.zip --wait --team-id S8D843U34Y --key "/Users/ci/appstoreconnect/apiKey.p8" --key-id "$(cat /Users/ci/appstoreconnect/apiKeyId.txt)" --issuer "$(cat /Users/ci/appstoreconnect/apiIssuerId.txt)"
- name: Update monal homebrew alpha repo
run: scripts/updateAlphaHomebrew.sh
- uses: actions/upload-artifact@v2
with:
name: monal-catalyst
path: Monal/build/app/Monal.tar
if-no-files-found: error
- uses: actions/upload-artifact@v2
with:
name: monal-ios
path: Monal/build/ipa/Monal.ipa
if-no-files-found: error
- uses: actions/upload-artifact@v2
with:
name: monal-catalyst-dsym
path: Monal/build/macos_Monal.xcarchive/dSYMs
if-no-files-found: error
- uses: actions/upload-artifact@v2
with:
name: monal-ios-dsym
path: Monal/build/ios_Monal.xcarchive/dSYMs
if-no-files-found: error