From ed7be63bbcd86b0e339142ab790174082f2d6e09 Mon Sep 17 00:00:00 2001 From: Arkai1 Date: Wed, 16 Apr 2025 18:22:40 +0530 Subject: [PATCH] Update hianime-build.yml --- .github/workflows/hianime-build.yml | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/.github/workflows/hianime-build.yml b/.github/workflows/hianime-build.yml index 7d4de87a..b3865128 100644 --- a/.github/workflows/hianime-build.yml +++ b/.github/workflows/hianime-build.yml @@ -1,4 +1,4 @@ -name: Build and Push Hianime APK to apk-builds +name: Build Hianime and Push APK on: push: @@ -10,34 +10,36 @@ jobs: runs-on: ubuntu-latest steps: - - name: Checkout source branch - uses: actions/checkout@v3 + - name: Checkout branch + uses: actions/checkout@v4 + with: + ref: Hianime-fix - name: Set up JDK - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: - distribution: 'temurin' - java-version: '17' + java-version: 17 + distribution: temurin - - name: Grant permission to Gradle + - name: Give Gradle permission run: chmod +x ./gradlew - name: Build Hianime APK run: ./gradlew :src:en:zoro:assembleDebug - - name: Copy APK to output folder + - name: Copy built APK run: | mkdir -p out/apk/Hianime cp src/en/zoro/build/outputs/apk/debug/*.apk out/apk/Hianime/ - - name: Push APK to apk-builds branch + - name: Push to apk-builds branch run: | cd out git init git config user.name "GitHub Actions" git config user.email "github-actions@users.noreply.github.com" git add . - git commit -m "Update Hianime APK [CI build]" + git commit -m "Built Hianime APK from Hianime-fix" git branch -M apk-builds - git remote add origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git + git remote add origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }} git push -f origin apk-builds