Skip to content

Commit d1b2d15

Browse files
committed
feat: add rebase scripts
1 parent e71f9c8 commit d1b2d15

File tree

40 files changed

+626
-185
lines changed

40 files changed

+626
-185
lines changed

.github/workflows/app-build.yml

Lines changed: 36 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,37 @@
1-
# Copyright (C) 2020 The Android Open Source Project
2-
#
3-
# Licensed under the Apache License, Version 2.0 (the "License");
4-
# you may not use this file except in compliance with the License.
5-
# You may obtain a copy of the License at
6-
#
7-
# https://www.apache.org/licenses/LICENSE-2.0
8-
#
9-
# Unless required by applicable law or agreed to in writing, software
10-
# distributed under the License is distributed on an "AS IS" BASIS,
11-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
# See the License for the specific language governing permissions and
13-
# limitations under the License.
14-
15-
name: Android CI
16-
17-
on:
18-
push:
19-
branches: [ master ]
20-
pull_request:
21-
branches: [ master ]
22-
23-
jobs:
24-
25-
build:
26-
name: Build
27-
runs-on: ubuntu-latest
28-
29-
steps:
30-
- uses: actions/checkout@v1
31-
- name: set up JDK 17
32-
uses: actions/setup-java@v1
33-
with:
34-
java-version: 17
35-
- name: Build project
36-
run: chmod +x .github/scripts/gradlew_recursive.sh ; .github/scripts/gradlew_recursive.sh assembleDebug
37-
- name: Zip artifacts
38-
run: zip -r assemble.zip . -i '**/build/*.apk' '**/build/*.aab' '**/build/*.aar' '**/build/*.so'
39-
- name: Upload artifacts
40-
uses: actions/upload-artifact@v1
41-
with:
42-
name: assemble
43-
path: assemble.zip
1+
# name: assembleDebug
2+
3+
# on:
4+
# push:
5+
# branches: [ develop ]
6+
# pull_request:
7+
# branches: [ develop ]
8+
9+
# jobs:
10+
11+
# build:
12+
# name: Build
13+
# runs-on: ubuntu-20.04
14+
# steps:
15+
# - uses: actions/checkout@v1
16+
17+
# - name: set up JDK 17
18+
# uses: actions/setup-java@v1
19+
# with:
20+
# java-version: 17
21+
22+
# - name: Clean
23+
# run: |
24+
# ./scripts/cleanup.sh
25+
26+
# - name: Build APK
27+
# run: chmod +x .github/scripts/gradlew_recursive.sh ; .github/scripts/gradlew_recursive.sh assembleDebug
28+
29+
# - name: Zip artifacts
30+
# run: zip -r assemble.zip . -i '**/build/*.apk' '**/build/*.aab' '**/build/*.aar' '**/build/*.so'
31+
32+
# - name: Upload artifacts
33+
# uses: actions/upload-artifact@v1
34+
# with:
35+
# name: assembleDebug
36+
# path: assembleDebug.zip
4437

.github/workflows/deploy-apk.yml

Lines changed: 39 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,60 @@
1-
name: Deploy APK on GitHub
1+
name: assembleRelease
22

3+
# on:
4+
# release:
5+
# types:
6+
# - created
37
on:
4-
release:
5-
types:
6-
- created
8+
push:
9+
branches: [ develop ]
710

811
permissions:
912
contents: write
1013

1114
jobs:
1215
build:
13-
runs-on: ubuntu-latest
16+
runs-on: ubuntu-20.04
1417

1518
steps:
1619
- uses: actions/checkout@v1
1720
- name: set up JDK 17
1821
uses: actions/setup-java@v1
1922
with:
2023
java-version: 17
21-
22-
- name: Build APK
23-
run: bash gradlew app:assembleRelease
2424

25-
- uses: r0adkll/[email protected]
26-
name: Sign APK
25+
- name: Build APK + AAB
26+
run: |
27+
ls /usr/local/lib/android/sdk/build-tools/
28+
chmod +x .github/scripts/gradlew_recursive.sh ; .github/scripts/gradlew_recursive.sh assembleRelease
29+
chmod +x .github/scripts/gradlew_recursive.sh ; .github/scripts/gradlew_recursive.sh bundleRelease
30+
31+
- name: Move files
32+
run: |
33+
mv app/build/outputs/apk/release/app-release-unsigned.apk app/build/outputs/app-release.apk
34+
mv app/build/outputs/bundle/release/app-release.aab app/build/outputs/app-release.aab
35+
36+
- name: Sign APK + AAB
37+
uses: r0adkll/sign-android-release@v1
2738
id: sign_app
2839
with:
29-
releaseDirectory: app/build/outputs/apk/release
30-
signingKeyBase64: ${{ secrets.SIGNING_KEY }}
31-
alias: ${{ secrets.KEY_ALIAS }}
32-
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
33-
keyPassword: ${{ secrets.KEY_PASSWORD }}
40+
releaseDirectory: app/build/outputs
41+
signingKeyBase64: ${{ secrets.ANDROID_SIGNING_KEY }}
42+
alias: ${{ secrets.ANDROID_KEY_ALIAS }}
43+
keyStorePassword: ${{ secrets.ANDROID_KEYSTORE_PASSWORD }}
44+
keyPassword: ${{ secrets.ANDROID_KEY_PASSWORD }}
45+
env:
46+
BUILD_TOOLS_VERSION: "35.0.1"
47+
48+
- name: Build Changelog
49+
uses: ardalanamini/auto-changelog@v3
50+
with:
51+
mention-authors: false
52+
mention-new-contributors: false
53+
include-compare: false
54+
semver: false
55+
56+
- name: Echo APK
57+
run: echo Signed APK FILE ${{steps.sign_app.outputs.signedReleaseFile}}
3458

3559
- uses: svenstaro/upload-release-action@v2
3660
name: Upload APK

.idea/inspectionProfiles/Project_Default.xml

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)