-
Notifications
You must be signed in to change notification settings - Fork 4
37 lines (35 loc) · 1.25 KB
/
release-sentry.yml
File metadata and controls
37 lines (35 loc) · 1.25 KB
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
name: Create Sentry Release
on:
push:
tags: [ 'v*' ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 14.17.1
uses: actions/setup-node@v2
with:
node-version: 14.17.1
cache: 'npm'
- name: set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
- run: echo "${{ secrets.ANDROID_KEYSTORE }}" | base64 -d > android.keystore
- run: echo '${{ secrets.PLAYSTORE_ACCESS_TOKEN }}' > /tmp/playstore_key.json
- run: echo '${{ secrets.SENTRY_TOKEN }}' > ./sentry.properties
- run: echo '${{ secrets.FCM_ANDROID_JSON }}' > ./google-services.json
- run: npm ci
# create www folder to satisfy cordova
- run: mkdir -p www
- run: npm run ionic -- cordova resources android
- run: npm run apply-version
- run: npm run replace-keystore-passwd
env:
ANDROID_KEYSTORE_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_PASSWORD }}
- run: npm run cordova -- platform add android
- run: npm run ionic -- cordova build android --release --prod
- run: npm run sentry-cli -- releases new $GITHUB_REF_NAME
- run: npm run sentry-cli -- releases files $GITHUB_REF_NAME upload-sourcemaps www