-
-
Notifications
You must be signed in to change notification settings - Fork 76
40 lines (33 loc) · 1.2 KB
/
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
name: Release Upload
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.release.tag_name }}
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: 17
- name: Make gradlew executable
run: chmod +x ./gradlew
- name: Build APK
run: |
echo ${DEV_STORE_FILE} | base64 -d > KEY_DEV.jks
DEV_KEY_ALIAS=$(echo -n $DEV_KEY_ALIAS | base64 -d)
./gradlew assembleDev -Ddev_store_file=../KEY_DEV.jks -Ddev_store_password="${DEV_STORE_PASSWORD}" -Ddev_key_alias="${DEV_KEY_ALIAS}" -Ddev_key_password="${DEV_STORE_PASSWORD}"
env:
DEV_STORE_PASSWORD: ${{ secrets.DEV_STORE_PASSWORD }}
DEV_KEY_ALIAS: ${{ secrets.DEV_KEY_ALIAS }}
DEV_STORE_FILE: ${{ secrets.DEV_STORE_FILE }}
- name: Upload to release
uses: Shopify/[email protected]
with:
name: Trail-Sense-${{ github.event.release.tag_name }}-dev.apk
path: ./app/build/outputs/apk/dev/app-dev.apk
repo-token: ${{ secrets.GITHUB_TOKEN }}