Skip to content

Commit

Permalink
Merge pull request #72 from boschglobal/feature-42
Browse files Browse the repository at this point in the history
feature(Build): Add Automation for Github Releases Pages
  • Loading branch information
Chrylo authored Feb 2, 2024
2 parents d98c9b3 + 1add64b commit b7c0fcc
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/create-github-release.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit b7c0fcc

Please sign in to comment.