Skip to content

Commit 05b9bd7

Browse files
committed
release 0.3.0-RC2
1 parent 8eb21ea commit 05b9bd7

File tree

3 files changed

+19
-30
lines changed

3 files changed

+19
-30
lines changed

.github/workflows/build.yml

+10-7
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,13 @@ jobs:
1515
runs-on: ubuntu-latest
1616

1717
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

.github/workflows/release.yaml

+8-22
Original file line numberDiff line numberDiff line change
@@ -10,29 +10,15 @@ jobs:
1010

1111
steps:
1212
- 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
2216
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
2721
- name: Publish artifact
2822
env:
2923
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

gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version=0.3.0-RC1
1+
version=0.3.0-RC2

0 commit comments

Comments
 (0)