revanced-manager/.github/workflows/release.yml
Pun Butrach 8bd73c3afa
ci(release): don't build when not necessary
Add paths-ignore to all markdown files, and .idea folder
2023-09-02 21:59:23 +07:00

51 lines
1.2 KiB
YAML

name: Android Release
on:
push:
branches:
- dev
paths-ignore:
- "**.md"
- ".idea/**"
pull_request:
branches:
- dev
paths-ignore:
- "**.md"
- ".idea/**"
jobs:
build:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: gradle
- name: Build with Gradle
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ./gradlew assembleRelease --no-daemon
- name: Sign APK
id: sign_apk
uses: r0adkll/sign-android-release@v1
with:
releaseDirectory: ./app/build/outputs/apk/release/
signingKeyBase64: ${{ secrets.TEMP_SIGNING_KEYSTORE }}
keyStorePassword: ${{ secrets.TEMP_SIGNING_KEYSTORE_PASSWORD }}
alias: ${{ vars.TEMP_SIGNING_KEY_ALIAS }}
keyPassword: ${{ secrets.TEMP_SIGNING_KEY_PASSWORD }}
- name: Upload APK
uses: actions/upload-artifact@v3
with:
name: revanced-manager
path: ${{ steps.sign_apk.outputs.signedReleaseFile }}