Merge pull request #186 from Tiqr/feature/TIQR-493 #67
Workflow file for this run
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
name: Release nl.eduid app to Github and playstore | |
on: | |
workflow_dispatch: | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
submodules: recursive | |
- uses: actions/setup-java@v3 | |
with: | |
java-version: 17 | |
distribution: 'temurin' | |
cache: 'gradle' | |
- name: Build nl.eduid App bundle | |
run: ./gradlew bundleRelease | |
- name: Sign nl.eduid App Bundle | |
id: sign_aab | |
uses: r0adkll/sign-android-release@v1 | |
with: | |
releaseDirectory: app/build/outputs/bundle/release/ | |
signingKeyBase64: ${{ secrets.SIGNINGKEYBASE64 }} | |
alias: ${{ secrets.ALIAS }} | |
keyStorePassword: ${{ secrets.KEYSTOREPASSWORD }} | |
keyPassword: ${{ secrets.KEYPASSWORD }} | |
- name: Build Changelog | |
id: changelog | |
uses: ardalanamini/auto-changelog@v3 | |
- name: Create release | |
uses: actions/create-release@v1 | |
id: create_release | |
with: | |
draft: false | |
prerelease: true | |
release_name: Release ${{ github.ref }} | |
tag_name: ${{ github.ref }} | |
body: | | |
${{ steps.changelog.outputs.changelog }} | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
- name: Publish to nl.eduid play store test track | |
uses: r0adkll/upload-google-play@v1 | |
with: | |
serviceAccountJsonPlainText: ${{ secrets.SERVICE_ACCOUNT_JSON }} | |
packageName: nl.eduid | |
releaseFiles: ${{ steps.sign_aab.outputs.signedReleaseFile }} | |
track: internal | |
status: completed |