File tree Expand file tree Collapse file tree 2 files changed +10
-14
lines changed
Expand file tree Collapse file tree 2 files changed +10
-14
lines changed Original file line number Diff line number Diff line change 11name : Create Release on Semantic Version Tag
22
33on :
4- push :
5- tags :
6- - " v*"
4+ workflow_dispatch :
5+ inputs :
6+ version :
7+ description : a stable version to use (e.g. 1.2.1)
78
89jobs :
910 release :
@@ -24,20 +25,16 @@ jobs:
2425 uses : gradle/gradle-build-action@v2
2526
2627 - name : Execute Gradle build
27- run : ./gradlew build
28+ run : ./gradlew -Pversion=${{ inputs.version }} build publishToMavenLocal
29+ env :
30+ ORG_GRADLE_PROJECT_signingKey : ${{ secrets.OSSRH_GPG_SECRET_KEY }}
31+ ORG_GRADLE_PROJECT_signingPassword : ${{ secrets.OSSRH_GPG_SECRET_KEY_PASSPHRASE }}
32+
2833
2934 - name : " Create release"
3035 uses : " marvinpinto/action-automatic-releases@latest"
3136 with :
3237 repo_token : " ${{ secrets.GITHUB_TOKEN }}"
3338 prerelease : false
3439 files : |
35- build/libs/java-security-*.jar
36-
37- - name : " Publish to Maven Central"
38- run : ./gradlew publishNebulaPublicationToSonatypeRepository closeAndReleaseSonatypeStagingRepository
39- env :
40- ORG_GRADLE_PROJECT_signingKey : ${{ secrets.OSSRH_GPG_SECRET_KEY }}
41- ORG_GRADLE_PROJECT_signingPassword : ${{ secrets.OSSRH_GPG_SECRET_KEY_PASSPHRASE }}
42- ORG_GRADLE_PROJECT_sonatypeUsername : ${{ secrets.OSSRH_USERNAME }}
43- ORG_GRADLE_PROJECT_sonatypePassword : ${{ secrets.OSSRH_TOKEN }}
40+ ~/.m2/repository/io/github/pixee/java-security-toolkit/${{ inputs.version }}/java-security-*
Original file line number Diff line number Diff line change @@ -91,7 +91,6 @@ tasks.named(java11SourceSet.jarTaskName) {
9191}
9292
9393group = " io.github.pixee"
94- version = " 1.2.1"
9594description = " java-security-toolkit"
9695
9796
You can’t perform that action at this time.
0 commit comments