feat(ci): improve workflow caching (#97)
This commit is contained in:
parent
b738f08425
commit
a6fbe2c983
2 changed files with 8 additions and 4 deletions
6
.github/workflows/build.yml
vendored
6
.github/workflows/build.yml
vendored
|
|
@ -20,10 +20,12 @@ jobs:
|
|||
with:
|
||||
java-version: 21
|
||||
distribution: zulu
|
||||
cache: "gradle"
|
||||
|
||||
- name: Setup Gradle
|
||||
uses: gradle/actions/setup-gradle@v4
|
||||
|
||||
- name: Build with Gradle
|
||||
run: chmod +x ./gradlew && ./gradlew :app:assembleDebug :app:assembleStaging --stacktrace
|
||||
run: ./gradlew :app:assembleDebug :app:assembleStaging --stacktrace
|
||||
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
|
|
|
|||
6
.github/workflows/release.yml
vendored
6
.github/workflows/release.yml
vendored
|
|
@ -23,7 +23,9 @@ jobs:
|
|||
with:
|
||||
java-version: 21
|
||||
distribution: zulu
|
||||
cache: "gradle"
|
||||
|
||||
- name: Setup Gradle
|
||||
uses: gradle/actions/setup-gradle@v4
|
||||
|
||||
- name: Build with Gradle
|
||||
env:
|
||||
|
|
@ -34,7 +36,7 @@ jobs:
|
|||
RELEASE: true
|
||||
run: |
|
||||
echo "${{ secrets.keystore }}" | base64 -d > release.keystore
|
||||
chmod +x ./gradlew && ./gradlew :app:packageRelease --stacktrace
|
||||
./gradlew :app:packageRelease --stacktrace
|
||||
rm release.keystore
|
||||
|
||||
- name: Upload artifacts
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue