From 1add64b669b2b562b0a5c0ac6280c455f52a1ad9 Mon Sep 17 00:00:00 2001 From: Andre Weber Date: Fri, 2 Feb 2024 07:45:54 +0100 Subject: [PATCH] feature(Build): Add Automation for Github Releases Pages Closes: #42 Signed-off-by: Andre Weber --- .github/workflows/create-github-release.yaml | 42 ++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/create-github-release.yaml diff --git a/.github/workflows/create-github-release.yaml b/.github/workflows/create-github-release.yaml new file mode 100644 index 00000000..1a10e9bb --- /dev/null +++ b/.github/workflows/create-github-release.yaml @@ -0,0 +1,42 @@ +name: GitHub release + +concurrency: production + +on: + push: + tags: + - 'release/v*' + +permissions: + contents: write + +jobs: + deployment: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - uses: ./.github/actions/setup-project + + - name: Set Release Version + run: ./gradlew setReleaseVersion # Do not chain this command because it writes into a file which needs to be re-read inside the next gradle command + + - uses: ./.github/actions/create-release-apk + with: + keystore: ${{ secrets.KEYSTORE_RELEASE }} + key_alias: ${{ secrets.SIGNING_KEY_ALIAS }} + key_password: ${{ secrets.SIGNING_KEY_PASSWORD }} + store_password: ${{ secrets.SIGNING_STORE_PASSWORD }} + gradle_task: app:assembleRelease + + - name: Rename release artefact + run: mv app/build/outputs/apk/release/app-release.apk kuksa_sdk_testapp.apk + + - name: Publish Release + uses: softprops/action-gh-release@v1 + with: + prerelease: true + body_path: CHANGELOG.md + files: | + kuksa_sdk_testapp.apk + CHANGELOG.md