forked from chr56/Phonograph_Plus
-
Notifications
You must be signed in to change notification settings - Fork 0
77 lines (70 loc) · 1.88 KB
/
dev.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
71
72
73
74
75
76
77
name: dev
on:
push:
branches:
- 'dev'
- 'main'
tags-ignore:
- 'v*'
- 'preview_*'
- 'test*'
paths-ignore:
- '.github/**'
- '.idea/**'
- 'docs/**'
- 'fastlane/metadata/android/**'
- 'tools/changelog-generator/**'
- 'crowdin.yml'
- 'fdroid.properties'
- '*.json'
- '**.md'
- 'ReleaseNote*'
workflow_dispatch:
pull_request:
branches:
- 'dev'
- 'main'
paths-ignore:
- '.github/**'
- '.idea/**'
- '**.md'
jobs:
build:
# Matrix builds
name: "Dev Ci"
strategy:
matrix:
PRODUCT_VARIANT: [ModernCheckoutDebug, LegacyCheckoutDebug]
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'
cache: gradle
- name: Set up Gradle
uses: gradle/actions/setup-gradle@v3
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Generate Sign Config
env:
SECRETS_KEY: ${{ secrets.KEY }}
SECRETS_STORE_PASSWORD: ${{ secrets.STORE_PASSWORD }}
SECRETS_KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }}
SECRETS_KEY_ALIAS: ${{ secrets.KEY_ALIAS }}
KEYSTORE_FILE: ${{ github.workspace }}/key.jdk
CONFIG_FILE: ${{ github.workspace }}/signing.properties
run: |
bash ${{ github.workspace }}/scripts/generate_signing_key.sh
- name: Build with Gradle
run: |
./gradlew assemble${{ matrix.PRODUCT_VARIANT }} --stacktrace
- name: Upload APK
uses: actions/upload-artifact@v4
with:
name: Artifacts_${{ matrix.PRODUCT_VARIANT }}
path: ./app/build/outputs/apk/*/debug/*.apk
retention-days: 3