Skip to content

Commit

Permalink
ci: added pr workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminHalko committed Sep 3, 2023
1 parent 8bd73c3 commit 4b24012
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 50 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/pr-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: PR Build Compose

on:
pull_request:
paths-ignore:
- "**.md"
- ".idea/**"

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
# Make sure the release step uses its own credentials:
# https://github.com/cycjimmy/semantic-release-action#private-packages
persist-credentials: false
fetch-depth: 0

- 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: ilharp/sign-android-release@v1
with:
releaseDir: app/build/outputs/apk/release
signingKey: ${{ secrets.SIGNING_KEYSTORE }}
keyStorePassword: ${{ secrets.SIGNING_KEYSTORE_PASSWORD }}
keyAlias: ${{ secrets.SIGNING_KEY_ALIAS }}
keyPassword: ${{ secrets.SIGNING_KEY_PASSWORD }}

- name: Upload build
uses: actions/upload-artifact@v3
with:
name: revanced-manager-compose
path: ${{ steps.sign_apk.outputs.signedFile }}
50 changes: 0 additions & 50 deletions .github/workflows/release.yml

This file was deleted.

0 comments on commit 4b24012

Please sign in to comment.