File tree Expand file tree Collapse file tree 1 file changed +0
-34
lines changed
Expand file tree Collapse file tree 1 file changed +0
-34
lines changed Original file line number Diff line number Diff line change 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 }}
You can’t perform that action at this time.
0 commit comments