feat: Add downloader plugin system #639
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: Build pull request | |
on: | |
pull_request: | |
paths: | |
- ".github/workflows/pr-build.yml" | |
- "app/**" | |
- "gradle/**" | |
- "*.properties" | |
- ".kts" | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Set up Gradle | |
uses: gradle/actions/setup-gradle@v4 | |
- name: Build with Gradle | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: ./gradlew assembleRelease --no-daemon -PnoProguard -PsignAsDebug | |
- name: Set env | |
run: echo "COMMIT_HASH=$(git rev-parse --short HEAD)" >> $GITHUB_ENV | |
- name: Add hash to APK | |
run: mv app/build/outputs/apk/release/app-release.apk revanced-manager-${{ env.COMMIT_HASH }}.apk | |
- name: Upload build | |
uses: actions/upload-artifact@v4 | |
with: | |
name: revanced-manager | |
path: revanced-manager-${{ env.COMMIT_HASH }}.apk |