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:
parent
1f73aee3c1
commit
4885bd1b56
9
.github/workflows/build.yml
vendored
9
.github/workflows/build.yml
vendored
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user