File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change 1+ # This workflow will build a package using Gradle and then publish it to GitHub packages when a release is created
2+ # For more information see: https://github.com/actions/setup-java#publishing-using-gradle
3+
4+ name : Gradle Package
5+
6+ on :
7+ release :
8+ types : [created]
9+
10+ jobs :
11+ build :
12+
13+ runs-on : ubuntu-latest
14+
15+ steps :
16+ - uses : actions/checkout@v2
17+ - name : Set up JDK 1.8
18+ uses : actions/setup-java@v1
19+ with :
20+ java-version : 1.8
21+ server-id : github # Value of the distributionManagement/repository/id field of the pom.xml
22+ settings-path : ${{ github.workspace }} # location for the settings.xml file
23+
24+ - name : Build with Gradle
25+ run : gradle build
26+
27+ # The USERNAME and TOKEN need to correspond to the credentials environment variables used in
28+ # the publishing section of your build.gradle
29+ - name : Publish to GitHub Packages
30+ run : gradle publish
31+ env :
32+ USERNAME : ${{ github.actor }}
33+ TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments