From 28a481bba437f60e1fa3584b39ffe73a5d8ecbfb Mon Sep 17 00:00:00 2001 From: astatin3 Date: Wed, 24 Jul 2024 16:07:27 -0600 Subject: [PATCH] Try something else with the workflow --- .github/workflows/android.yml | 5 +++-- .github/workflows/apk.yml | 26 -------------------------- 2 files changed, 3 insertions(+), 28 deletions(-) delete mode 100644 .github/workflows/apk.yml diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index b2370ad..c79e4ff 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -2,8 +2,9 @@ name: Build & Publish Release APK on: push: - tags: - - '*' + branches: [ "main" ] + pull_request: + branches: [ "main" ] jobs: Gradle: diff --git a/.github/workflows/apk.yml b/.github/workflows/apk.yml deleted file mode 100644 index b2370ad..0000000 --- a/.github/workflows/apk.yml +++ /dev/null @@ -1,26 +0,0 @@ -name: Build & Publish Release APK - -on: - push: - tags: - - '*' - -jobs: - Gradle: - runs-on: ubuntu-latest - steps: - - name: checkout code - uses: actions/checkout@v2 - - name: setup jdk - uses: actions/setup-java@v1 - with: - java-version: 17 - - name: Make Gradle executable - run: chmod +x ./gradlew - - name: Build Release APK - run: ./gradlew assembleRelease - - name: Releasing using Hub - uses: sangatdesai/release-apk@main - env: - GITHUB_TOKEN: ${{ secrets.TOKEN }} - APP_FOLDER: app