forked from gluonhq/javaone2016
-
Notifications
You must be signed in to change notification settings - Fork 15
58 lines (48 loc) · 2.04 KB
/
ios.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
name: iOS
on:
push:
branches: [ main ]
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Setup Gluon's GraalVM
uses: gluonhq/setup-graalvm@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: Apple-Actions/import-codesign-certs@v1
with:
p12-file-base64: ${{ secrets.DEVOXX_IOS_CERTIFICATES_FILE_BASE64 }}
p12-password: ${{ secrets.DEVOXX_IOS_CERTIFICATES_PASSWORD }}
- uses: Apple-Actions/download-provisioning-profiles@v1
with:
bundle-id: com.devoxx.mydevoxx.swift
issuer-id: ${{ secrets.DEVOXX_IOS_APPSTORE_ISSUER_ID }}
api-key-id: ${{ secrets.DEVOXX_IOS_APPSTORE_KEY_ID }}
api-private-key: ${{ secrets.DEVOXX_IOS_APPSTORE_PRIVATE_KEY }}
- name: Gluon License
uses: gluonhq/gluon-build-license@v2
with:
gluon-license: ${{ secrets.GLUON_LICENSE }}
dir: DevoxxClientMobile
- name: CloudLink Config
run: printf '${{ secrets.CLOUDLINK_CONFIG }}' > DevoxxClientMobile/src/main/resources/gluoncloudlink_config.json
shell: bash
- name: Bundle version
id: variables
run: |
echo "::set-output name=VERSION::$((500 + GITHUB_RUN_NUMBER))"
shell: bash
- name: Gluon Build
run: |
./mvnw clean install
./mvnw -fDevoxxClientMobile -Pios -DiosSignIdentity="${{ secrets.DEVOXX_SIGN_IDENTITY }}" -DiosProvisioningProfile="${{ secrets.DEVOXX_PROV_PROFILE }}" -Dbundle.version="$BUNDLE_VERSION" gluonfx:build gluonfx:package
env:
BUNDLE_VERSION: ${{ steps.variables.outputs.VERSION }}
- uses: Apple-Actions/upload-testflight-build@master
with:
app-path: DevoxxClientMobile/target/gluonfx/arm64-ios/DevoxxClientMobile.ipa
issuer-id: ${{ secrets.DEVOXX_IOS_APPSTORE_ISSUER_ID }}
api-key-id: ${{ secrets.DEVOXX_IOS_APPSTORE_KEY_ID }}
api-private-key: ${{ secrets.DEVOXX_IOS_APPSTORE_PRIVATE_KEY }}