File tree Expand file tree Collapse file tree 1 file changed +37
-0
lines changed
Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Manual Maven Deploy Package GH
2+
3+ on :
4+ workflow_dispatch :
5+ inputs :
6+ VERSION :
7+ description : ' The SemVer version number'
8+ required : true
9+
10+ jobs :
11+ deploygh :
12+
13+ runs-on : ubuntu-latest
14+
15+ env :
16+ artifact_name : jpt
17+
18+ steps :
19+ - uses : actions/checkout@v2
20+
21+ - name : Set up JDK 11 for deploy to github packages
22+ uses : actions/setup-java@v2
23+ with :
24+ distribution : ' adopt'
25+ java-version : ' 11'
26+ server-id : github
27+
28+ - name : Build with Maven
29+ run : mvn -B package --file pom.xml
30+
31+ - name : Update package version
32+ run : mvn versions:set -DnewVersion=${{ github.event.inputs.VERSION }}
33+
34+ - name : Publish to GitHub Packages Apache Maven
35+ run : mvn deploy -PgithubDeploy
36+ env :
37+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments