Update .github/workflows/build_push.yml
All checks were successful
CI / Prepare job (push) Successful in 1m2s
CI / Build individual modules (push) Successful in 14m26s
CI / Publish repo (push) Successful in 1m29s

This commit is contained in:
AlmightyHak 2025-06-17 09:42:04 -05:00
parent da1cdc169b
commit 7de7f3db93

View file

@ -30,16 +30,24 @@ jobs:
with:
ref: main
token: ${{ secrets.BOT_PAT }}
- name: Find lib changes
id: modified-libs
uses: https://github.com/tj-actions/changed-files@90a06d6ba9543371ab4df8eeca0be07ca6054959 #v42
with:
files: lib/
files_ignore: lib/**.md
files_separator: " "
safe_output: false
# Temporary pause because of leak of tj-actions/changed-files
# - name: Find lib changes
# id: modified-libs
# uses: tj-actions/changed-files@90a06d6ba9543371ab4df8eeca0be07ca6054959 #v42
# with:
# files: lib/
# files_ignore: lib/**.md
# files_separator: " "
# safe_output: false
# This step is going to commit, but this will not trigger another workflow.
- name: Bump extensions that uses a modified lib
if: steps.modified-libs.outputs.any_changed == 'true'
run: |
./.github/scripts/bump-versions.py ${{ steps.modified-libs.outputs.all_changed_files }}
- name: Validate Gradle Wrapper
uses: https://github.com/gradle/wrapper-validation-action@a494d935f4b56874c4a5a87d19af7afcf3a163d0 # v2
- name: Import GPG key
uses: https://github.com/crazy-max/ghaction-import-gpg@v6 # v6.1.0
@ -49,15 +57,8 @@ jobs:
git_user_signingkey: true
git_commit_gpgsign: true
# # This step is going to commit, but this will not trigger another workflow.
# - name: Bump extensions that uses a modified lib
# if: steps.modified-libs.outputs.any_changed == 'true'
# run: |
# chmod +x ./.github/scripts/bump-versions.py
# ./.github/scripts/bump-versions.py ${{ steps.modified-libs.outputs.all_changed_files }}
build:
name: Build
build_individual:
name: Build individual modules
needs: prepare
runs-on: docker
steps:
@ -84,19 +85,18 @@ jobs:
- name: Set up Gradle
uses: https://github.com/gradle/actions/setup-gradle@245c8a24de79c0dbeabaf19ebcbbd3b2c36f278d # v4
- name: Build extensions (chunk ${{ matrix.chunk }})
- name: Build extensions
env:
CI_CHUNK_NUM: ${{ matrix.chunk }}
ALIAS: ${{ secrets.ALIAS }}
KEY_STORE_PASSWORD: ${{ secrets.KEY_STORE_PASSWORD }}
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }}
run: chmod +x ./gradlew && ./gradlew -p src assembleRelease
- name: Upload APKs (chunk ${{ matrix.chunk }})
- name: Upload APKs
uses: https://code.forgejo.org/forgejo/upload-artifact@16871d9e8cfcf27ff31822cac382bbb5450f1e1e # v4-patch
if: "github.repository == 'Kohi-den/extensions-source'"
with:
name: "individual-apks-${{ matrix.chunk }}"
name: "individual-apks"
path: "**/*.apk"
retention-days: 1
@ -163,4 +163,4 @@ jobs:
message: "Update extensions repo"
cwd: "./repo"
committer_name: Kohi-den-bot
committer_email: kohi-den-bot@noreply.localhost
committer_email: kohi-den-bot@noreply.localhost