-
Notifications
You must be signed in to change notification settings - Fork 1
62 lines (53 loc) · 1.84 KB
/
release-prod.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
name: Release Production App
on:
release:
types: [created]
jobs:
build_and_test:
uses: ./.github/workflows/build.yml
with:
storeArtifacts: true
prodRelease: true
tagName: ${{ github.event.release.tag_name }}
secrets: inherit
prod_release_ios:
name: Upload iOS build to App Store connect
runs-on: macos-latest
needs: [build_and_test]
steps:
- name: Download artifact
uses: actions/[email protected]
with:
name: ios
- name: Upload app to App Store Connect
env:
APP_STORE_CONNECT_USERNAME: ${{ secrets.APP_STORE_CONNECT_USERNAME }}
APP_STORE_CONNECT_PASSWORD: ${{ secrets.APP_STORE_CONNECT_PASSWORD }}
run: |
xcrun altool --upload-app -t ios -f "Analog.ipa" -u "$APP_STORE_CONNECT_USERNAME" -p "$APP_STORE_CONNECT_PASSWORD"
prod_release_android:
name: Upload Android build to Play Store
runs-on: ubuntu-latest
needs: [build_and_test]
steps:
- name: Download artifact
uses: actions/[email protected]
with:
name: android
- name: Sign Android appbundle
uses: r0adkll/[email protected]
id: sign_app
with:
releaseDirectory: .
signingKeyBase64: ${{ secrets.ANDROID_KEYSTORE }}
alias: ${{ secrets.ANDROID_KEY_ALIAS }}
keyStorePassword: ${{ secrets.ANDROID_KEYSTORE_PASSWORD }}
keyPassword: ${{ secrets.ANDROID_KEY_PASSWORD }}
- name: Upload to Google Play Store
uses: r0adkll/[email protected]
with:
serviceAccountJsonPlainText: ${{ secrets.PLAYSTORE_SERVICE_ACCOUNT_JSON }}
packageName: dk.analog.digitalclipcard
releaseFiles: ${{ steps.sign_app.outputs.signedReleaseFile }}
track: internal
status: draft