-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (47 loc) · 1.71 KB
/
deploy-android.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
name: Deploy Android
on:
workflow_dispatch:
push:
branches:
- internal
- alpha
- beta
- master
concurrency:
group: deploy-android-${{ github.ref }}
cancel-in-progress: false
jobs:
build-android:
name: Deploy Android
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install dependencies
uses: ./.github/actions/install-dependencies
- run: sudo apt-get install -y gnupg1
- name: Encrypt GPG secure files
run: |
# echo ${{ secrets.SUPER_SECRET_PASSWORD }} | gpg1 --no-tty --passphrase-fd 0 android/my-release-key.keystore.gpg
echo ${{ secrets.SUPER_SECRET_PASSWORD }} | gpg1 --no-tty --passphrase-fd 0 android/app/google-services.json.gpg
echo ${{ secrets.SUPER_SECRET_PASSWORD }} | gpg1 --no-tty --passphrase-fd 0 android/democracy2-release-key.keystore.gpg
echo ${{ secrets.SUPER_SECRET_PASSWORD }} | gpg1 --no-tty --passphrase-fd 0 android/key.json.gpg
- name: Extract branch name
shell: bash
run: |
if [[ ${{ github.ref }} == 'refs/heads/master' ]]; then
echo "lane=production" >> $GITHUB_OUTPUT
else
echo "lane=internal" >> $GITHUB_OUTPUT
fi
id: extract_branch
- name: Fastlane
uses: maierj/[email protected]
with:
lane: 'internal --env ${{ steps.extract_branch.outputs.lane }}'
subdirectory: 'android'
env:
MATCH_GIT_BASIC_AUTHORIZATION: ${{ secrets.MATCH_GIT_BASIC_AUTHORIZATION }}
FASTLANE_PASSWORD: ${{ secrets.FASTLANE_PASSWORD }}
ANDROID_PASS: ${{ secrets.ANDROID_PASS }}
CI: true