diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 05b08cc..c436575 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,7 +20,7 @@ jobs: build: name: Build runs-on: ubuntu-latest - permissions: + permissions: contents: write steps: @@ -53,7 +53,7 @@ jobs: uses: mukunku/tag-exists-action@v1.5.0 if: github.event.inputs.release == 'true' id: check-tag - with: + with: tag: "${{ env.version }}" - name: Release check @@ -82,19 +82,22 @@ jobs: export STORE_PASSWORD="${{ secrets.STORE_PASSWORD }}" export KEY_ALIAS="${{ secrets.KEY_ALIAS }}" export KEY_PASSWORD="${{ secrets.KEY_PASSWORD }}" - ./gradlew aR --no-daemon + ./gradlew aR + ./gradlew bR cp -f app/build/outputs/apk/release/app-release.apk ${{ env.repo }}-${{ env.version }}.apk + cp -f app/build/outputs/bundle/release/app-release.aab ${{ env.repo }}-${{ env.version }}.aab else - ./gradlew asD --no-daemon + ./gradlew asD + ./gradlew bunD cp -f app/build/outputs/apk/debug/app-debug.apk ${{ env.repo }}-${{ env.version }}@${{ env.commit }}.apk + cp -f app/build/outputs/bundle/debug/app-debug.aab ${{ env.repo }}-${{ env.version }}@${{ env.commit }}.aab fi - name: Upload APK uses: actions/upload-artifact@v4 - if: github.event.inputs.release != 'true' with: name: ${{ env.repo }}(${{ env.version }}@${{ env.commit }}) - path: ${{ env.repo }}-${{ env.version }}@${{ env.commit }}.apk + path: ${{ env.repo }}-${{ env.version }}*.a* - name: Release uses: softprops/action-gh-release@v1 @@ -103,4 +106,4 @@ jobs: tag_name: ${{ env.version }} draft: true prerelease: false - files: ${{ env.repo }}-${{ env.version }}.apk \ No newline at end of file + files: ${{ env.repo }}-${{ env.version }}.apk