Skip to content

滚动时显示滚动条、后台添加链接用offlineFileViewModel,增强代码复用、launchMode更改,多次启动应用不会返回主页面、 #33

滚动时显示滚动条、后台添加链接用offlineFileViewModel,增强代码复用、launchMode更改,多次启动应用不会返回主页面、

滚动时显示滚动条、后台添加链接用offlineFileViewModel,增强代码复用、launchMode更改,多次启动应用不会返回主页面、 #33

name: automated build
env:
# The name of the main module repository
main_project_module: app
on:
push
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
# Set Current Date As Env Variable
- name: Set current date as env variable
run: echo "date_today=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
- uses: actions/setup-java@v3
with:
distribution: 'zulu' # See 'Supported distributions' for available options
java-version: '17'
cache: 'gradle'
- uses: gradle/gradle-build-action@v2
with:
gradle-version: current
arguments: assembleRelease
- uses: ilharp/sign-android-release@v1
id: sign_app
with:
releaseDir: app/build/outputs/apk/release
signingKey: ${{ secrets.ANDROID_SIGNING_KEY }}
keyAlias: ${{ secrets.ANDROID_KEY_ALIAS }}
keyStorePassword: ${{ secrets.ANDROID_KEYSTORE_PASSWORD }}
keyPassword: ${{ secrets.ANDROID_KEY_PASSWORD }}
buildToolsVersion: 33.0.0
# Noted For Output [main_project_module]/build/outputs/apk/release/
- name: Upload APK Release - ${{ env.repository_name }}
uses: actions/upload-artifact@v3
with:
name: ${{ env.date_today }} - Nap511 release generated
path: ${{steps.sign_app.outputs.signedFile}}