forked from AlmightyHak/extensions-source
Update hianime-build.yml
This commit is contained in:
parent
334745ef2d
commit
ed7be63bbc
1 changed files with 13 additions and 11 deletions
24
.github/workflows/hianime-build.yml
vendored
24
.github/workflows/hianime-build.yml
vendored
|
@ -1,4 +1,4 @@
|
||||||
name: Build and Push Hianime APK to apk-builds
|
name: Build Hianime and Push APK
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
@ -10,34 +10,36 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout source branch
|
- name: Checkout branch
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
ref: Hianime-fix
|
||||||
|
|
||||||
- name: Set up JDK
|
- name: Set up JDK
|
||||||
uses: actions/setup-java@v3
|
uses: actions/setup-java@v4
|
||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
java-version: 17
|
||||||
java-version: '17'
|
distribution: temurin
|
||||||
|
|
||||||
- name: Grant permission to Gradle
|
- name: Give Gradle permission
|
||||||
run: chmod +x ./gradlew
|
run: chmod +x ./gradlew
|
||||||
|
|
||||||
- name: Build Hianime APK
|
- name: Build Hianime APK
|
||||||
run: ./gradlew :src:en:zoro:assembleDebug
|
run: ./gradlew :src:en:zoro:assembleDebug
|
||||||
|
|
||||||
- name: Copy APK to output folder
|
- name: Copy built APK
|
||||||
run: |
|
run: |
|
||||||
mkdir -p out/apk/Hianime
|
mkdir -p out/apk/Hianime
|
||||||
cp src/en/zoro/build/outputs/apk/debug/*.apk 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: |
|
run: |
|
||||||
cd out
|
cd out
|
||||||
git init
|
git init
|
||||||
git config user.name "GitHub Actions"
|
git config user.name "GitHub Actions"
|
||||||
git config user.email "github-actions@users.noreply.github.com"
|
git config user.email "github-actions@users.noreply.github.com"
|
||||||
git add .
|
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 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
|
git push -f origin apk-builds
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue