Skip to content

Commit 8fd7256

Browse files
authored
Actualizar gradle-publish.yml
1 parent 76c2d99 commit 8fd7256

File tree

1 file changed

+0
-34
lines changed

1 file changed

+0
-34
lines changed
Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +0,0 @@
1-
a package using Gradle and then publish it to GitHub packages when a release is created
2-
# For more
3-
4-
jobs:
5-
build:
6-
7-
runs-on: ubuntu-latest
8-
permissions:
9-
contents: read
10-
packages: write
11-
12-
steps:
13-
- uses: actions/checkout@v4
14-
- name: Set up JDK 17
15-
uses: actions/setup-java@v4
16-
with:
17-
java-version: '17'
18-
distribution: 'temurin'
19-
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
20-
settings-path: ${{ github.workspace }} # location for the settings.xml file
21-
22-
- name: Setup Gradle
23-
uses: gradle/actions/setup-gradle@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0
24-
25-
- name: Build with Gradle
26-
run: ./gradlew build
27-
28-
# The USERNAME and TOKEN need to correspond to the credentials environment variables used in
29-
# the publishing section of your build.gradle
30-
- name: Publish to GitHub Packages
31-
run: ./gradlew publish
32-
env:
33-
USERNAME: ${{ github.actor }}
34-
TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)