ci: Fixed build cache to restore before save
This commit is contained in:
parent
52401de56a
commit
6c07332fc6
1 changed files with 10 additions and 2 deletions
12
.github/workflows/build_push.yml
vendored
12
.github/workflows/build_push.yml
vendored
|
@ -104,8 +104,8 @@ jobs:
|
|||
- name: Set up Gradle
|
||||
uses: https://github.com/gradle/actions/setup-gradle@245c8a24de79c0dbeabaf19ebcbbd3b2c36f278d # v4
|
||||
|
||||
- name: Cache build directories
|
||||
uses: https://github.com/actions/cache/save@v3
|
||||
- name: Restore build cache
|
||||
uses: https://github.com/actions/cache/restore@v3
|
||||
with:
|
||||
path: |
|
||||
src/**/build
|
||||
|
@ -123,6 +123,14 @@ jobs:
|
|||
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }}
|
||||
run: chmod +x ./gradlew && ./gradlew -p src assembleRelease
|
||||
|
||||
- name: Store build cache
|
||||
uses: https://github.com/actions/cache/save@v3
|
||||
with:
|
||||
path: |
|
||||
src/**/build
|
||||
!src/**/build/outputs
|
||||
key: build-cache-${{ github.sha }}-${{ matrix.chunk }}
|
||||
|
||||
- name: Upload APKs
|
||||
uses: https://code.forgejo.org/forgejo/upload-artifact@16871d9e8cfcf27ff31822cac382bbb5450f1e1e # v4-patch
|
||||
if: "github.repository == 'Kohi-den/extensions-source'"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue