d5a744bd37
* Gradle cleanup
* Update package name
* Remove release APK from git
This should have never been here
* Move package name to dependencies.gradle
* github: Setup caching for gradle
* Update Play Store art
* gradle: Use constraints API in place of deprecated force
* Update dependencies
* Raise minSdk to 23
* Target SDK 28 for now
External storage handling changes are atrocious to support in this codebase so we'll be holding out as far as we can.
* Revert "Opt into legacy external storage handling (#595)"
Not needed on SDK 28
This reverts commit 3f249e4bff
.
Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
46 lines
1.3 KiB
YAML
46 lines
1.3 KiB
YAML
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
name: Deploy snapshot builds
|
|
jobs:
|
|
deploy-release-snapshot:
|
|
runs-on: ubuntu-latest
|
|
if: "!contains(github.event.head_commit.message, '[ci skip]')"
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v1
|
|
|
|
- name: Decrypt secrets
|
|
run: release/signing-setup.sh "$ENCRYPT_KEY"
|
|
env:
|
|
ENCRYPT_KEY: ${{ secrets.ENCRYPT_KEY }}
|
|
|
|
- uses: actions/cache@v1
|
|
with:
|
|
path: ~/.gradle/caches
|
|
key: gradle-${{ runner.os }}-${{ hashFiles('**/build.gradle') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}-${{ hashFiles('**/dependencies.gradle') }}
|
|
|
|
- name: Download gradle dependencies
|
|
run: ./gradlew dependencies
|
|
|
|
- name: Validate codestyle with Spotless
|
|
run: ./gradlew spotlessCheck
|
|
|
|
- name: Build release app
|
|
run: ./gradlew :app:assembleRelease
|
|
env:
|
|
SNAPSHOT: "true"
|
|
|
|
- name: Clean secrets
|
|
run: release/signing-cleanup.sh
|
|
|
|
- name: Deploy snapshot
|
|
run: release/deploy-snapshot.sh
|
|
env:
|
|
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
|
|
SSH_USERNAME: ${{ secrets.SSH_USERNAME }}
|
|
SERVER_ADDRESS: ${{ secrets.SERVER_ADDRESS }}
|
|
SERVER_DESTINATION: ${{ secrets.SERVER_DESTINATION }}
|
|
SSH_PORT: ${{ secrets.SSH_PORT }}
|