Skip to content

Commit f07d6c7

Browse files
committed
update workflows
1 parent 503452a commit f07d6c7

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,15 @@ jobs:
1616
- uses: actions/setup-java@v4
1717
with:
1818
distribution: 'temurin'
19-
java-version: '17'
19+
java-version: '21'
2020

21-
- name: validate gradle wrapper
21+
- name: wrapper validation
2222
uses: gradle/actions/wrapper-validation@v4
2323

24+
- name: make gradle wrapper executable
25+
if: ${{ runner.os != 'Windows' }}
26+
run: chmod +x ./gradlew
27+
2428
- name: build
2529
run: ./gradlew build --stacktrace
2630

.github/workflows/publish.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,23 @@ name: Release
22
on: [workflow_dispatch] # Manual trigger
33
jobs:
44
build:
5-
runs-on: ${{ matrix.os }}
5+
runs-on: ubuntu-24.04
66
steps:
77
- name: checkout repository
88
uses: actions/checkout@v4
99

1010
- uses: actions/setup-java@v4
1111
with:
1212
distribution: 'temurin'
13-
java-version: '17'
13+
java-version: '21'
1414

15-
- name: validate gradle wrapper
15+
- name: wrapper validation
1616
uses: gradle/actions/wrapper-validation@v4
1717

18+
- name: make gradle wrapper executable
19+
if: ${{ runner.os != 'Windows' }}
20+
run: chmod +x ./gradlew
21+
1822
- name: build
1923
run: ./gradlew build publish --stacktrace
2024
env:

0 commit comments

Comments
 (0)