Skip to content

Commit 74334ca

Browse files
authored
Update gradle-publish.yml
1 parent 45ec5ab commit 74334ca

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

.github/workflows/gradle-publish.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
# This workflow uses actions that are not certified by GitHub.
2-
# They are provided by a third-party and are governed by
3-
# separate terms of service, privacy policy, and support
4-
# documentation.
5-
# This workflow will build a package using Gradle and then publish it to GitHub packages when a release is created
6-
# For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#Publishing-using-gradle
7-
81
name: Gradle Package
92

103
on: [push]
@@ -19,6 +12,7 @@ jobs:
1912

2013
steps:
2114
- uses: actions/checkout@v4
15+
2216
- name: Set up JDK 21
2317
uses: actions/setup-java@v4
2418
with:
@@ -30,11 +24,12 @@ jobs:
3024
- name: Setup Gradle
3125
uses: gradle/actions/setup-gradle@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0
3226

27+
- name: Grant execute permission for Gradle wrapper
28+
run: chmod +x gradlew
29+
3330
- name: Build with Gradle
3431
run: ./gradlew build
3532

36-
# The USERNAME and TOKEN need to correspond to the credentials environment variables used in
37-
# the publishing section of your build.gradle
3833
- name: Publish to GitHub Packages
3934
run: ./gradlew publish
4035
env:

0 commit comments

Comments
 (0)