File tree Expand file tree Collapse file tree 1 file changed +62
-0
lines changed
Expand file tree Collapse file tree 1 file changed +62
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Assemble Release
2+
3+ on :
4+ push :
5+ tags :
6+ - " release-*"
7+
8+ jobs :
9+ build :
10+
11+ runs-on : ubuntu-latest
12+
13+ steps :
14+ - uses : actions/checkout@v2
15+ - uses : AdoptOpenJDK/install-jdk@v1
16+ with :
17+ version : ' 8'
18+ architecture : x64
19+ targets : ' JAVA_HOME'
20+
21+ - uses : actions/setup-node@v2
22+ with :
23+ node-version : ' 14'
24+ - name : Setup Android SDK
25+ uses : android-actions/setup-android@v2
26+
27+ - name : Install Bubblewrap
28+ run : npm install -g @bubblewrap/cli
29+
30+ - name : Setup Bubblewrap
31+ run : |
32+ mkdir -p ~/.bubblewrap
33+ echo "{\"jdkPath\":\"$JAVA_HOME\",\"androidSdkPath\":\"$ANDROID_SDK_ROOT\"}" > ~/.bubblewrap/config.json
34+ bubblewrap doctor
35+
36+ - name : Load release keystore
37+ run : |
38+ if [[ -n "${{ secrets.RELEASE_KEYSTORE_BASE64 }}" ]]; then
39+ echo "${{ secrets.RELEASE_KEYSTORE_BASE64 }}" | base64 -d > ~/android.keystore
40+ fi
41+
42+ - name : Grant execute permission for gradlew
43+ run : chmod +x gradlew
44+
45+ - name : Build
46+ env :
47+ BUBBLEWRAP_KEYSTORE_PASSWORD : ${{ secrets.BUBBLEWRAP_KEYSTORE_PASSWORD }}
48+ BUBBLEWRAP_KEY_PASSWORD : ${{ secrets.BUBBLEWRAP_KEY_PASSWORD }}
49+ run : |
50+ bubblewrap build --signingKeyPath=$HOME/android.keystore --signingKeyAlias=android
51+
52+ - name : Release
53+ uses : softprops/action-gh-release@v1
54+ if : startsWith(github.ref, 'refs/tags/')
55+ with :
56+ files : |
57+ app-release-bundle.aab
58+ app-release-signed.apk
59+ app-release-signed.apk.idsig
60+ app-release-unsigned-aligned.apk
61+ env :
62+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments