From 44e6995da13a457426d4866749ff258b5970abf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B9=8C=E5=A0=86=E5=B0=8F=E9=80=8F=E6=98=8E?= Date: Sun, 19 Feb 2023 16:19:12 +0800 Subject: [PATCH] Create dev.yml --- .github/workflows/dev.yml | 44 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/dev.yml diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml new file mode 100644 index 00000000..96845559 --- /dev/null +++ b/.github/workflows/dev.yml @@ -0,0 +1,44 @@ +name: Dev + +on: + push: + branches: [ "main" ] + workflow_dispatch: + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: set up JDK 11 + uses: actions/setup-java@v3 + with: + java-version: '11' + distribution: 'temurin' + cache: gradle + + - name: Grant execute permission for gradlew + run: chmod +x gradlew + + - name: Build with Gradle + run: | + bash ./gradlew assembleRelease + + - name: Sign Release APK + if: success() + id: sign_release + uses: r0adkll/sign-android-release@v1.0.4 + with: + releaseDirectory: ./app/build/outputs/apk/release + signingKeyBase64: ${{ secrets.SIGNING_KEY }} + alias: ${{ secrets.KEY_STORE_ALIAS }} + keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }} + keyPassword: ${{ secrets.KEY_STORE_PASSWORD }} + + - name: Upload Release APK + uses: actions/upload-artifact@v2 + with: + name: WooBox_release + path: ${{ steps.sign_release.outputs.signedReleaseFile }}