-
-
Notifications
You must be signed in to change notification settings - Fork 326
101 lines (92 loc) · 4.31 KB
/
BuildReleasePlay.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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
name: Build Release Google Play
on:
push:
tags:
- "*"
workflow_dispatch:
concurrency:
group: 'play'
cancel-in-progress: false
jobs:
publishPlay:
environment:
name: Release-Play
name: Build Arcticons Bundle
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
steps:
- name: Checking out branch
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 21
cache: gradle
- name: Write sign info
run: |
echo "Workflow manually triggered by ${{ github.actor }}"
if [ ! -z "${{ secrets.KEYSTORE }}" ]; then
echo storePassword='${{ secrets.KEYSTORE_PASSWORD }}' >> keystore.properties
echo keyAlias='${{ secrets.KEY_ALIAS }}' >> keystore.properties
echo keyPassword='${{ secrets.KEY_PASSWORD }}' >> keystore.properties
echo storeFile='${{ github.workspace }}/key.jks' >> keystore.properties
echo ${{ secrets.KEYSTORE }} | base64 --decode > ${{ github.workspace }}/key.jks
fi
- name: Get Gradle
run: gradle wrapper
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build Normal Bundle
run: ./gradlew app:bundleNormalPlayRelease
- name: Build Black Bundle
run: ./gradlew app:bundleBlackPlayRelease
- name: Build You Bundle
run: ./gradlew app:bundleYouPlayRelease
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
cache: 'pip'
- run: |
pip install markdown
pip install beautifulsoup4
- name: Create Changelog
run: |
mkdir whatsnew
python .github/workflows/mark2text.py
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
path: |
app/build/outputs/bundle/normalPlayRelease/*.aab
app/build/outputs/bundle/blackPlayRelease/*.aab
app/build/outputs/bundle/youPlayRelease/*.aab
# Step: Upload APK/AAB to Google Play
- name: Upload Normal to Google Play
uses: r0adkll/upload-google-play@v1
with:
serviceAccountJsonPlainText: ${{ secrets.GOOGLE_PLAY_SERVICE_ACCOUNT }}
packageName: 'com.donnnno.arcticons' # Replace with your app's package name
releaseFiles: app/build/outputs/bundle/normalPlayRelease/*.aab # Path to your APK/AAB
track: production # Options: production, beta, alpha, internal
status: completed # Options: draft, inProgress, halted, completed
whatsNewDirectory: whatsnew
- name: Upload Black to Google Play
uses: r0adkll/upload-google-play@v1
with:
serviceAccountJsonPlainText: ${{ secrets.GOOGLE_PLAY_SERVICE_ACCOUNT }}
packageName: 'com.donnnno.arcticons.light' # Replace with your app's package name
releaseFiles: app/build/outputs/bundle/blackPlayRelease/*.aab # Path to your APK/AAB
track: production # Options: production, beta, alpha, internal
status: completed # Options: draft, inProgress, halted, completed
whatsNewDirectory: whatsnew
- name: Upload You to Google Play
uses: r0adkll/upload-google-play@v1
with:
serviceAccountJsonPlainText: ${{ secrets.GOOGLE_PLAY_SERVICE_ACCOUNT }}
packageName: 'com.donnnno.arcticons.you.play' # Replace with your app's package name
releaseFiles: app/build/outputs/bundle/youPlayRelease/*.aab # Path to your APK/AAB
track: production # Options: production, beta, alpha, internal
status: completed # Options: draft, inProgress, halted, completed
whatsNewDirectory: whatsnew