Skip to content

Task/56 63 69 setup sample app release publish and unit tests (#70) #1

Task/56 63 69 setup sample app release publish and unit tests (#70)

Task/56 63 69 setup sample app release publish and unit tests (#70) #1

Workflow file for this run

name: Release CI
on:
push:
tags:
- v*
jobs:
release:
name: Publish Release
runs-on: macos-latest
if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v3
- name: Setup JAVA 11
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 11
- name: Cache Gradle and wrapper
uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
- name: Inject Secrets
env:
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
FLAKER_GITHUB_MAVEN_PUBLISH: ${{ secrets.FLAKER_GITHUB_MAVEN_PUBLISH }}
SIGNING_KEY_ALIAS: ${{ secrets.SIGNING_KEY_ALIAS }}
SIGNING_KEY_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }}
SIGNING_STORE_PASSWORD: ${{ secrets.SIGNING_STORE_PASSWORD }}
run: |
touch secrets.properties
echo "SENTRY_DSN = $SENTRY_DSN" >> secrets.properties
echo "SIGNING_KEY_ALIAS = $SIGNING_KEY_ALIAS" >> secrets.properties
echo "SIGNING_KEY_PASSWORD = $SIGNING_KEY_PASSWORD" >> secrets.properties
echo "SIGNING_STORE_PASSWORD = $SIGNING_STORE_PASSWORD" >> secrets.properties
echo "GPR_USERNAME = rotbolt" >> secrets.properties
echo "GPR_TOKEN = $FLAKER_GITHUB_MAVEN_PUBLISH" >> secrets.properties
- name: Decode Keystore
env:
ENCODED_STRING: ${{ secrets.SIGNING_KEY_STORE }}
SIGNING_KEY_STORE_PATH: ${{ secrets.SIGNING_KEY_STORE_PATH }}
run: |
echo $ENCODED_STRING > keystore-b64.txt
base64 -d keystore-b64.txt > $SIGNING_KEY_STORE_PATH
- name: Build Sample Release apk
run: ./gradlew assembleRelease
- name: Upload Sample App Release Build to Artifacts
uses: actions/upload-artifact@v3
with:
name: release-artifacts
paths: |
flakersampleapp/build/outputs/apk/release/
- name: Publish Library Packages
run: ./gradlew publishAllPublicationsToGithubPackagesRepository