Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
imshinyu authored Nov 28, 2024
1 parent 4ef14f1 commit d4fa0bd
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,18 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: set up JDK 17
uses: actions/setup-java@v1
- name: Set up JDK 17
uses: actions/setup-java@v2 # Use v2 instead of v1
with:
java-version: 17
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: cache
- uses: actions/cache@v2
- name: Cache Gradle dependencies # Add a name here for clarity
uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
Expand All @@ -39,16 +39,16 @@ jobs:
with:
gradlePath: app/build.gradle
versionCode: ${{ github.run_number }}

release:
name: release to GitHub
name: Release to GitHub
needs: build
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: actions/checkout@v2 # Use v2 instead of v4
- name: Setup JDK 17
uses: actions/setup-java@v4
uses: actions/setup-java@v2 # Use v2 instead of v4
with:
distribution: 'temurin'
java-version: 17
Expand Down

0 comments on commit d4fa0bd

Please sign in to comment.