Merge pull request #89 from TimPushkin/updates #79
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 | |
| on: | |
| push: | |
| branches: [ main ] | |
| workflow_dispatch: | |
| jobs: | |
| create-artifacts: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-java@v4 | |
| with: | |
| java-version: 17 | |
| distribution: temurin | |
| - uses: gradle/actions/setup-gradle@v3 | |
| - name: Configure signing | |
| env: | |
| STORE_FILE: depnav.jks | |
| run: | | |
| echo -n ${{ secrets.Keystore }} | base64 -d > $STORE_FILE | |
| echo "storeFile=$GITHUB_WORKSPACE/$STORE_FILE" > keystore.properties | |
| echo "storePassword=${{ secrets.StorePassword }}" >> keystore.properties | |
| echo "keyAlias=${{ secrets.KeyAlias }}" >> keystore.properties | |
| echo "keyPassword=${{ secrets.KeyPassword }}" >> keystore.properties | |
| - name: Create APK | |
| run: ./gradlew assembleRelease | |
| - name: Create AAB | |
| run: ./gradlew bundleRelease | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: release-files | |
| path: | | |
| app/build/outputs/apk/release/app-release.apk | |
| app/build/outputs/bundle/release/app-release.aab | |
| if-no-files-found: error |