-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #72 from boschglobal/feature-42
feature(Build): Add Automation for Github Releases Pages
- Loading branch information
Showing
1 changed file
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
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 |