Skip to content

Commit f514f2f

Browse files
authored
Update gradle-publish.yml
1 parent 8caf4c8 commit f514f2f

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.github/workflows/gradle-publish.yml

+5-6
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,16 @@ jobs:
2929
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
3030
settings-path: ${{ github.workspace }} # location for the settings.xml file
3131

32+
- name: Set up Gradle
33+
uses: gradle/actions/setup-gradle@v4
34+
3235
- name: Build with Gradle
33-
uses: gradle/gradle-build-action@bd5760595778326ba7f1441bcf7e88b49de61a25 # v2.6.0
34-
with:
35-
arguments: build
36+
run: ./gradlew build
3637

3738
# The USERNAME and TOKEN need to correspond to the credentials environment variables used in
3839
# the publishing section of your build.gradle
3940
- name: Publish to GitHub Packages
40-
uses: gradle/gradle-build-action@bd5760595778326ba7f1441bcf7e88b49de61a25 # v2.6.0
41-
with:
42-
arguments: publish
41+
run: ./gradlew publish
4342
env:
4443
GITHUB_ACTOR: ${{ github.actor }}
4544
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)