-
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 #28 from boschglobal/feature-27
feature: Add staging signing config
- Loading branch information
Showing
13 changed files
with
154 additions
and
70 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,13 @@ | ||
name: setup_project | ||
description: Setups the gradle and java environment | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '17' | ||
|
||
- name: Setup Gradle | ||
uses: gradle/gradle-build-action@v2 |
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,49 @@ | ||
name: build_main | ||
|
||
on: | ||
push: | ||
branches: | ||
- testdeploy | ||
|
||
env: | ||
GPR_USERNAME: ${{ github.actor }} | ||
GPR_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
jobs: | ||
validate-project: | ||
uses: ./.github/workflows/reusable-build-validation.yaml | ||
|
||
deploy-artifacts: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: ./.github/actions/setup-project | ||
|
||
- name: Decode Keystore | ||
uses: timheuer/base64-to-file@v1 | ||
with: | ||
fileName: 'keystore.jks' | ||
encodedString: ${{ secrets.KEYSTORE_RELEASE }} | ||
|
||
- name: Assemble release artifacts | ||
env: | ||
SIGNING_KEY_ALIAS: ${{ secrets.SIGNING_KEY_ALIAS }} | ||
SIGNING_KEY_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }} | ||
SIGNING_STORE_PASSWORD: ${{ secrets.SIGNING_STORE_PASSWORD }} | ||
run: ./gradlew assembleRelease | ||
|
||
- name: Archive .apk file | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: kuksa_companion_app.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 |
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
This file was deleted.
Oops, something went wrong.
File renamed without changes.
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
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,19 @@ | ||
name: build_validation | ||
|
||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
build-project: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup Project | ||
uses: ./.github/actions/setup-project | ||
|
||
- name: Run 'check' with Gradle Wrapper | ||
run: ./gradlew ktlintCheck detekt | ||
|
||
# - name: Run 'test' with Gradle Wrapper | ||
# run: ./gradlew test |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -19,6 +19,7 @@ captures/ | |
*.apk | ||
output.json | ||
stdout | ||
app/release/ | ||
|
||
# IntelliJ | ||
*.iml | ||
|
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
35 changes: 35 additions & 0 deletions
35
buildSrc/src/main/kotlin/org/eclipse/kuksa/companion/property/PropertiesLoader.kt
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,35 @@ | ||
/* | ||
* Copyright (c) 2023 Contributors to the Eclipse Foundation | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
package org.eclipse.kuksa.companion.property | ||
|
||
import java.io.File | ||
import java.util.Properties | ||
|
||
class PropertiesLoader { | ||
fun load(path: String): Properties? { | ||
val properties = File(path) | ||
if (!properties.exists()) return null | ||
|
||
properties.reader().use { reader -> | ||
return Properties().apply { | ||
load(reader) | ||
} | ||
} | ||
} | ||
} |
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
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