-
Notifications
You must be signed in to change notification settings - Fork 0
70 lines (57 loc) · 2.21 KB
/
internal-test-release.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
name: Release to Internal Test
on:
workflow_dispatch:
inputs:
update-priority:
required: true
type: number
jobs:
internal-test-release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'corretto'
cache: gradle
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3'
rubygems: latest
bundler: latest
bundler-cache: true
- name: Set up GitVersion
uses: GitTools/actions/gitversion/setup@v1
with:
versionSpec: '5.x'
preferLatestVersion: true
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Set up secrets
run: |
echo taplinxKey=${{ secrets.TAPLINX_KEY }} >> local.properties
echo taplinxOfflineKey=${{ secrets.TAPLINX_OFFLINE_KEY }} >> local.properties
echo sentryDsn=${{ secrets.SENTRY_DSN }} >> local.properties
echo ${{ secrets.GOOGLE_PLAY_KEYSTORE_BASE64 }} | base64 -d > apiary-mobile.jks
- name: Add problem matchers
run: echo "::add-matcher::.github/matchers.json"
- name: Upload internal test release build
run: bundle exec fastlane uploadToInternalTest jksPath:"$(pwd)/apiary-mobile.jks" signingStorePassword:"${{ secrets.GOOGLE_PLAY_KEYSTORE_PASSWORD }}" signingKeyAlias:"apiary-mobile-upload-key" signingKeyPassword:"${{ secrets.GOOGLE_PLAY_KEYSTORE_PASSWORD }}" inAppUpdatePriority:"${{ inputs.update-priority }}"
env:
GOOGLE_PLAY_PRIVATE_KEY: ${{ secrets.GOOGLE_PLAY_PRIVATE_KEY }}
IS_CI: true
- name: Push release to GitHub
run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add app/build.gradle.kts
git commit -m "Bump version to v$(dotnet-gitversion | jq --raw-output .SemVer)"
git tag --annotate v$(dotnet-gitversion | jq --raw-output .SemVer) -m "Build released to internal test track"
git push --follow-tags