-
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (32 loc) · 964 Bytes
/
onRelease.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
name: Publish to store
on:
release:
types: [published]
jobs:
publishToStore:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: 17.0.9
- name: Install App center
run: npm install -g appcenter-cli
- name: Obtain config
uses: actions/checkout@v3
with:
repository: ${{ secrets.GIT_CONFIG_REPO }}
ref: master
path: app-configuration
token: ${{ secrets.GIT_TOKEN }}
- name: Obtain env variables
run: mv ./app-configuration/.env.production ./.env
- name: Install dependencies
run: npm install
- name: Build android
run: npm run build-android-release
- name: Publish
run: npm run distribute-production-flow -- -m "${{ github.event.release.body }}"