Create nightly release #7
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: Create nightly release | |
| on: [workflow_dispatch] | |
| permissions: | |
| contents: write | |
| jobs: | |
| build-android: | |
| name: Build the android app | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Setup Java development kit | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: 21 | |
| distribution: "temurin" | |
| cache: gradle | |
| - name: Build release apk | |
| env: | |
| STORE_BASE64: ${{secrets.STORE_BASE64}} | |
| KEY_PASSWORD: ${{secrets.KEY_PASSWORD}} | |
| KEY_ALIAS: ${{secrets.KEY_ALIAS}} | |
| STORE_PASSWORD: ${{secrets.STORE_PASSWORD}} | |
| working-directory: VOMic_Android | |
| # Decode keystore file from base64 and place it in the appropriate location | |
| # After that, Build the app using gradle. | |
| run: | | |
| echo "$STORE_BASE64" | base64 -d > ./app/layer8.jks | |
| ./gradlew assembleRelease | |
| - name: Upload release apk | |
| uses: actions/upload-artifact@v5 | |
| with: | |
| name: release-apk | |
| path: ./VOMic_Android/app/build/outputs/apk/release/*.apk | |
| # Fail instatntly, if nothing found in the "path". | |
| if-no-files-found: error | |
| release-android: | |
| runs-on: ubuntu-latest | |
| needs: [build-android] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Download all artifacts | |
| uses: actions/download-artifact@v6 | |
| with: | |
| merge-multiple: true | |
| path: all-artifacts | |
| - name: Create or update nightly tag | |
| run: | | |
| git tag -f nightly | |
| git push origin nightly --force | |
| - name: Create Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| name: VOMic Development (Pre-release) | |
| generate_release_notes: true | |
| tag_name: nightly | |
| prerelease: true | |
| files: all-artifacts/**/* |