支持种子文件上传 #28
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}} |