1
0

chore(build.yml): update build workflow

- Change the name of the step from "Write Branch and Hash Info" to "Get Branch and Hash Info"
- Remove the line that writes the branch and hash info to the version.txt file
- Add a new step named "Pull Assets" to clone the Gakumas-Translation-Data-EN repository into app/src/main/assets/gakumas-local
This commit is contained in:
Natsu 2024-07-01 13:26:52 +07:00
parent 1f73aee3c1
commit 4885bd1b56
Signed by: NatsumeLS
GPG Key ID: 6DB67FB460CF46C6

View File

@ -37,13 +37,16 @@ jobs:
sdkmanager --install "cmake;3.22.1"
echo "cmake.dir=/usr/local/lib/android/sdk/cmake/3.22.1" > local.properties
- name: Write Branch and Hash Info
- name: Get Branch and Hash Info
run: |
branch=$(git rev-parse --abbrev-ref HEAD)
hash=$(git rev-parse --short=7 HEAD)
echo "$branch.$hash" > app/src/main/assets/gakumas-local/version.txt
echo "VERSION=$branch.$hash" >> $GITHUB_ENV
- name: Pull Assets
run: |
git clone https://github.com/NatsumeLS/Gakumas-Translation-Data-EN.git app/src/main/assets/gakumas-local
- name: Grant Execute Permission for Gradlew
run: chmod +x gradlew