This repository has been archived by the owner on Mar 8, 2024. It is now read-only.
Bump org.jlleitschuh.gradle:ktlint-gradle from 11.5.1 to 12.1.0 #297
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
on: [push, pull_request] | |
name: Build | |
jobs: | |
check: | |
name: Check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-java@v1 | |
with: | |
java-version: 17 | |
- if: ${{ !startsWith(github.ref, 'refs/tags/') }} | |
run: ./gradlew build --stacktrace | |
- if: ${{ startsWith(github.ref, 'refs/tags/') }} | |
run: | | |
export RELEASE_STORE_FILE=$(pwd)/release-key.jks | |
echo $RELEASE_KEY | base64 -d > $RELEASE_STORE_FILE | |
./gradlew -Psign build --stacktrace | |
cp app/build/outputs/apk/release/app-release.apk app/build/outputs/apk/release/Nextpush.apk | |
env: | |
RELEASE_KEY: ${{ secrets.RELEASE_KEY }} | |
RELEASE_STORE_PASSWORD: ${{ secrets.RELEASE_STORE_PASSWORD }} | |
RELEASE_KEY_ALIAS: nextpush | |
RELEASE_KEY_PASSWORD: ${{ secrets.RELEASE_KEY_PASSWORD }} | |
- if: ${{ startsWith(github.ref, 'refs/tags/') }} | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: app/build/outputs/apk/release/Nextpush.apk | |
tag: ${{ github.ref }} | |
overwrite: true |