-
Notifications
You must be signed in to change notification settings - Fork 1
executable file
·46 lines (38 loc) · 1.36 KB
/
build-main.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Build Main
on:
push:
branches:
- main
jobs:
build-project:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Project
uses: ./.github/actions/setup-project
- name: Update Version
run: npm run bump-release # Updates the semantic version depending on the last commits e.g. feature / bugfix
- name: Set Snapshot Version
run: ./gradlew setSnapshotVersion # Do not chain this command because it writes into a file which needs to be re-read inside the next gradle command
- name: Build SDK TestApp
uses: ./.github/actions/create-release-apk
with:
keystore: ${{ secrets.KEYSTORE_DEBUG }}
key_alias: ${{ secrets.SIGNING_KEY_ALIAS }}
key_password: ${{ secrets.SIGNING_KEY_PASSWORD }}
store_password: ${{ secrets.SIGNING_STORE_PASSWORD }}
gradle_task: app:assembleRelease
- name: Archive .apk file
uses: actions/upload-artifact@v3
with:
name: kuksa_sdk_testapp.apk
path: app/build/outputs/apk/release/app-release.apk
if-no-files-found: error
retention-days: 14
- name: Archive changelog
uses: actions/upload-artifact@v3
with:
name: CHANGELOG.md
path: CHANGELOG.md
retention-days: 14