Fix: Refresh app list when AppDetail sheet is dismissed #1
Workflow file for this run
This file contains hidden or 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: Release Build | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| workflow_dispatch: | |
| jobs: | |
| build-release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| cache: gradle | |
| - name: Grant execute permission for gradlew | |
| run: chmod +x gradlew | |
| - name: Generate Release Keystore | |
| run: | | |
| keytool -genkey -v \ | |
| -keystore app/release.keystore \ | |
| -alias appcontrolx \ | |
| -keyalg RSA \ | |
| -keysize 2048 \ | |
| -validity 10000 \ | |
| -storepass android-risuncode-appcontrolx \ | |
| -keypass android-risuncode-appcontrolx \ | |
| -dname "CN=AppControlX, OU=Dev, O=RisunCode, L=ID, ST=ID, C=ID" | |
| - name: Build Release APK | |
| run: | | |
| ./gradlew assembleRelease \ | |
| -Pandroid.injected.signing.store.file=$PWD/app/release.keystore \ | |
| -Pandroid.injected.signing.store.password=android-risuncode-appcontrolx \ | |
| -Pandroid.injected.signing.key.alias=appcontrolx \ | |
| -Pandroid.injected.signing.key.password=android-risuncode-appcontrolx \ | |
| --no-daemon | |
| - name: Get version name | |
| id: version | |
| run: | | |
| VERSION=$(grep -oP 'versionName = "\K[^"]+' app/build.gradle.kts) | |
| echo "version=$VERSION" >> $GITHUB_OUTPUT | |
| - name: Upload Release APK | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: AppControlX-v${{ steps.version.outputs.version }}-release | |
| path: app/build/outputs/apk/release/*.apk | |
| retention-days: 30 | |
| - name: Create GitHub Release | |
| if: startsWith(github.ref, 'refs/tags/') | |
| uses: softprops/action-gh-release@v1 | |
| with: | |
| files: app/build/outputs/apk/release/*.apk | |
| generate_release_notes: true | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |