Skip to content

Commit 18a74c9

Browse files
authored
trying full workflow lifecycle
1 parent ca10de7 commit 18a74c9

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

.github/workflows/push_or_merge_to_main.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,9 @@ jobs:
88
build:
99
runs-on: ubuntu-latest
1010
env:
11-
BUILD_TYPE: "RELEASE"
11+
BUILD_TYPE: "MERGE"
1212
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
1313
OSSRH_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
14-
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
15-
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
16-
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
1714
steps:
1815
- run: echo -e "PUSH/MERGE to main"
1916
- name: Set up JDK 8
@@ -27,4 +24,4 @@ jobs:
2724
run: chmod +x gradlew && ./gradlew clean test
2825
- name: Publish
2926
if: ${{ success() }}
30-
run: ./gradlew -i signArchives signMavenJavaPublication publishToSonatype closeAndReleaseSonatypeStagingRepository
27+
run: ./gradlew -i publishToSonatype

.github/workflows/release_main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ jobs:
2828
run: chmod +x gradlew && ./gradlew clean test
2929
- name: Publish
3030
if: ${{ success() }}
31-
run: ./gradlew -i sign publishToSonatype closeAndReleaseSonatypeStagingRepository
31+
run: ./gradlew -i signArchives signMavenJavaPublication publishToSonatype closeAndReleaseSonatypeStagingRepository

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ plugins {
88
id 'signing'
99
}
1010

11-
def jarVersion = "1.0.1"
11+
def jarVersion = "1.0.2"
1212
group = 'io.nats'
1313

1414
def isPr = System.getenv("BUILD_TYPE") == "PR"

0 commit comments

Comments
 (0)