version 2.2 #22
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: CI | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Java8 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 11 | |
- name: Get the version | |
id: get_version | |
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} | |
- name: Build release apk | |
run: chmod a+x gradlew && ./gradlew clean assembleRelease | |
- name: Setup build tool version variable | |
shell: bash | |
run: | | |
BUILD_TOOL_VERSION=$(ls /usr/local/lib/android/sdk/build-tools/ | tail -n 1) | |
echo "BUILD_TOOL_VERSION=$BUILD_TOOL_VERSION" >> $GITHUB_ENV | |
echo Last build tool version is: $BUILD_TOOL_VERSION | |
# - uses: r0adkll/sign-android-release@v1 | |
# name: Sign app APK | |
# # ID used to access action output | |
# id: sign_app | |
# with: | |
# releaseDirectory: app/build/outputs/apk/release/ | |
# signingKeyBase64: ${{ secrets.SIGNING_KEY }} | |
# alias: ${{ secrets.ALIAS }} | |
# keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }} | |
# keyPassword: ${{ secrets.KEY_PASSWORD }} | |
# env: | |
# BUILD_TOOLS_VERSION: ${{ env.BUILD_TOOL_VERSION }} | |
- name: Archive apk | |
uses: actions/upload-artifact@v2 | |
with: | |
name: apk | |
path: app/build/outputs/apk/release/ # ${{steps.sign_app.outputs.signedReleaseFile}} | |