File tree Expand file tree Collapse file tree 1 file changed +53
-0
lines changed
Expand file tree Collapse file tree 1 file changed +53
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Release snapshot version
2+
3+ on :
4+ workflow_dispatch :
5+ inputs :
6+ branch :
7+ description : ' The branch to release snapshot release from'
8+ required : true
9+ default : ' master'
10+
11+ jobs :
12+ snapshot-release :
13+ runs-on : ubuntu-latest
14+
15+ steps :
16+ - name : Checkout code
17+ uses : actions/checkout@v4
18+ with :
19+ fetch-depth : 0
20+ ref : ${{ github.event.inputs.branch }}
21+
22+ - name : Install java
23+ uses : actions/setup-java@v4
24+ with :
25+ java-version : ' 25'
26+ distribution : ' temurin'
27+ gpg-private-key : ${{ secrets.JRELEASER_GPG_SECRET_KEY }}
28+ gpg-passphrase : MAVEN_GPG_PASSPHRASE
29+ cache : ' maven'
30+
31+ - name : Run mvn deploy to local staging
32+ env :
33+ MAVEN_GPG_PASSPHRASE : ${{ secrets.JRELEASER_GPG_PASSPHRASE }}
34+ run : |
35+ ./mvnw clean deploy -DskipTests -Poss-release -DaltDeploymentRepository=id::njord:snapshot
36+
37+ - name : Run njord:validate
38+ env :
39+ MAVEN_GPG_PASSPHRASE : ${{ secrets.JRELEASER_GPG_PASSPHRASE }}
40+ MAVENCENTRAL_USERNAME : ${{ secrets.JRELEASER_NEXUS2_MAVEN_CENTRAL_USERNAME }}
41+ MAVENCENTRAL_PASSWORD : ${{ secrets.JRELEASER_NEXUS2_MAVEN_CENTRAL_TOKEN }}
42+ run : |
43+ ./mvnw njord:list
44+ ./mvnw njord:status
45+ ./mvnw njord:validate
46+
47+ - name : Run njord:publish
48+ env :
49+ MAVEN_GPG_PASSPHRASE : ${{ secrets.JRELEASER_GPG_PASSPHRASE }}
50+ MAVENCENTRAL_USERNAME : ${{ secrets.JRELEASER_NEXUS2_MAVEN_CENTRAL_USERNAME }}
51+ MAVENCENTRAL_PASSWORD : ${{ secrets.JRELEASER_NEXUS2_MAVEN_CENTRAL_TOKEN }}
52+ run :
53+ ./mvnw njord:publish -Poss-release
You can’t perform that action at this time.
0 commit comments