Skip to content

Commit

Permalink
chore: Update Gradle setup to version 4 in Build-Apk.yml and Build-Re…
Browse files Browse the repository at this point in the history
…lease.yml workflows
  • Loading branch information
lisonge committed Nov 12, 2024
1 parent 39fd831 commit 99d1df8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/Build-Apk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,9 @@ jobs:
distribution: 'adopt'
java-version: '17'

- uses: gradle/actions/setup-gradle@v3
- uses: gradle/actions/setup-gradle@v4
with:
cache-encryption-key: ${{ secrets.GRADLE_CACHE_ENCRYPTION_KEY }}
gradle-home-cache-cleanup: true

- name: write secrets info
run: |
Expand Down
13 changes: 1 addition & 12 deletions .github/workflows/Build-Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,9 @@ jobs:
distribution: 'adopt'
java-version: '17'

- uses: gradle/actions/setup-gradle@v3
- uses: gradle/actions/setup-gradle@v4
with:
cache-encryption-key: ${{ secrets.GRADLE_CACHE_ENCRYPTION_KEY }}
gradle-home-cache-cleanup: true

- name: write secrets info
run: |
Expand Down Expand Up @@ -86,16 +85,6 @@ jobs:
asset_name: gkd-${{ github.ref_name }}.apk
asset_content_type: application/vnd.android.package-archive

- uses: actions/upload-release-asset@v1
if: ${{ !contains(github.ref_name, 'beta') }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: outputs/apk/foss/release/app-foss-release.apk
asset_name: gkd-x-foss-${{ github.ref_name }}.apk
asset_content_type: application/vnd.android.package-archive

- run: zip -r outputs.zip outputs

- uses: actions/upload-release-asset@v1
Expand Down

0 comments on commit 99d1df8

Please sign in to comment.