File tree 3 files changed +19
-30
lines changed
3 files changed +19
-30
lines changed Original file line number Diff line number Diff line change @@ -15,10 +15,13 @@ jobs:
15
15
runs-on : ubuntu-latest
16
16
17
17
steps :
18
- - uses : actions/checkout@v2
19
- - name : Set up JDK 11
20
- uses : actions/setup-java@v1
21
- with :
22
- java-version : 11
23
- - name : Build with Gradle
24
- run : ./gradlew build
18
+ - uses : actions/checkout@v4
19
+ - name : Set up JDK 11
20
+ uses : actions/setup-java@v2
21
+ with :
22
+ distribution : temurin
23
+ java-version : 11
24
+ - name : Setup Gradle
25
+ uses : gradle/actions/setup-gradle@v3
26
+ - name : Build with Gradle
27
+ run : ./gradlew build
Original file line number Diff line number Diff line change @@ -10,29 +10,15 @@ jobs:
10
10
11
11
steps :
12
12
- name : Checkout latest code
13
- uses : actions/checkout@v2
14
-
15
- - name : Set up JDK 8
16
- uses : actions/setup-java@v1
17
- with :
18
- java-version : 8
19
-
20
- - name : Setup build cache
21
- uses : actions/cache@v2
13
+ uses : actions/checkout@v4
14
+ - name : Set up JDK 11
15
+ uses : actions/setup-java@v2
22
16
with :
23
- path : ~/.gradle/caches
24
- key : ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts') }}
25
- restore-keys : |
26
- ${{ runner.os }}- gradle-
17
+ distribution : temurin
18
+ java-version : 11
19
+ - name : Setup Gradle
20
+ uses : gradle/actions/setup-gradle@v3
27
21
- name : Publish artifact
28
22
env :
29
23
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
30
-
31
- # The GITHUB_REF tag comes in the format 'refs/tags/xxx'.
32
- # If we split on '/' and take the 3rd value,
33
- # we can get the release name.
34
- run : |
35
- NEW_VERSION=$(echo "${GITHUB_REF}" | cut -d "/" -f3)
36
- echo "New version: ${NEW_VERSION}"
37
- echo "Github username: ${GITHUB_ACTOR}"
38
- gradle -Pversion=${NEW_VERSION} publish
24
+ run : ./gradlew publish
Original file line number Diff line number Diff line change 1
- version =0.3.0-RC1
1
+ version =0.3.0-RC2
You can’t perform that action at this time.
0 commit comments