Skip to content

Commit f73a348

Browse files
authored
Merge pull request #118 from line/2
Fix workflow to publish artifact
2 parents dc6ac9a + 73b0ab9 commit f73a348

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

.github/workflows/ossrh.yml

+14-4
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,20 @@ jobs:
1313
runs-on: ubuntu-latest
1414
environment: deploy
1515
steps:
16-
- uses: actions/checkout@v2
17-
- uses: gradle/wrapper-validation-action@v1
18-
- uses: actions/setup-java@v1
16+
- name: Fetch Sources
17+
uses: actions/checkout@v4
1918
with:
20-
java-version: 11
19+
fetch-depth: 0
20+
21+
- name: Validate Gradle Wrapper
22+
uses: gradle/actions/wrapper-validation@v3
23+
24+
- name: Setup Java
25+
uses: actions/setup-java@v4
26+
with:
27+
distribution: zulu
28+
java-version: 21
29+
2130
- name: Deploy artifacts
2231
env:
2332
ORG_GRADLE_PROJECT_repositoryUsername: ${{ secrets.OSSRH_USERNAME }}
@@ -27,6 +36,7 @@ jobs:
2736
run: |
2837
cat libpng_version | xargs ./download_libpng_and_apply_apng_patch.sh
2938
./gradlew publish
39+
3040
- name: Release to Maven Central
3141
if: ${{ github.event.inputs.cond_release == 'release' }}
3242
env:

0 commit comments

Comments
 (0)