Skip to content

Commit 5f92af6

Browse files
authored
Update gradle-publish.yml
1 parent d738262 commit 5f92af6

1 file changed

Lines changed: 2 additions & 12 deletions

File tree

.github/workflows/gradle-publish.yml

Lines changed: 2 additions & 12 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:
@@ -13,7 +6,6 @@ on:
136

147
jobs:
158
build:
16-
179
runs-on: ubuntu-latest
1810
permissions:
1911
contents: read
@@ -26,17 +18,15 @@ jobs:
2618
with:
2719
java-version: '17'
2820
distribution: 'temurin'
29-
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
30-
settings-path: ${{ github.workspace }} # location for the settings.xml file
21+
server-id: github
22+
settings-path: ${{ github.workspace }}
3123

3224
- name: Setup Gradle
3325
uses: gradle/actions/setup-gradle@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0
3426

3527
- name: Build with Gradle
3628
run: ./gradlew build
3729

38-
# The USERNAME and TOKEN need to correspond to the credentials environment variables used in
39-
# the publishing section of your build.gradle
4030
- name: Publish to GitHub Packages
4131
run: ./gradlew publish
4232
env:

0 commit comments

Comments
 (0)