Skip to content

Commit 7ddeadb

Browse files
committed
Attempting Release 7.5.1
1 parent 18810fc commit 7ddeadb

File tree

5 files changed

+81
-28
lines changed

5 files changed

+81
-28
lines changed

.github/workflows/publish-maven-central.yml

Lines changed: 28 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@ name: Publish to Maven Central
55
# Trigger this workflow whenever code is pushed to "master" branch.defaults:
66
# We would like to publish to maven central for both snapshot and release versions.
77
on:
8-
push:
9-
branches: [ master ]
10-
11-
8+
workflow_dispatch:
9+
inputs:
10+
release_candidate:
11+
description: The release candidate number
12+
required: true
13+
default: '1'
1214
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1315
jobs:
1416
# This workflow contains a single job called "build"
@@ -18,25 +20,25 @@ jobs:
1820

1921
# Steps represent a sequence of tasks that will be executed as part of the job
2022
steps:
21-
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
22-
- uses: actions/checkout@v2
23-
24-
- name: Gradle wrapper validation
25-
uses: gradle/wrapper-validation-action@v1
26-
27-
# Runs a single command using the runners shell
28-
- name: Install gpg secret key
29-
run: |
30-
cat <(echo -e "${{ secrets.GPG_SECRET_KEY }}") | gpg --batch --import
31-
gpg --export-secret-keys >$HOME/.gnupg/secring.gpg
32-
gpg --list-secret-keys --keyid-format LONG
33-
ls -l $HOME/.gnupg
34-
35-
# FIXME Check https://github.com/allure-framework/allure2/blob/430255d8cf5c236ed29bc0df0b72dcd9389c3df9/.github/workflows/release.yaml
36-
#- name: Publish release
37-
# run: |
38-
# ./gradlew -PghNexusUsername=${{ secrets.SONATYPE_USER }} -PghNexusPassword=${{ secrets.SONATYPE_PASSWORD }} -Psigning.secretKeyRingFile=$HOME/.gnupg/secring.gpg -Psigning.password="" -Psigning.keyId=${{ secrets.GPG_KEY_ID }} -Prc=1 prepareVote
39-
40-
#- name: Display next step
41-
# run: |
42-
# echo "Now go to https://oss.sonatype.org/index.html#stagingRepositories, select the repo, Close it and then Release it"
23+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
24+
- uses: actions/checkout@v3.5.0
25+
26+
- name: Gradle wrapper validation
27+
uses: gradle/wrapper-validation-action@v1.0.6
28+
29+
# Runs a single command using the runners shell
30+
- name: Install gpg secret key
31+
run: |
32+
cat <(echo -e "${{ secrets.GPG_SECRET_KEY }}") | gpg --batch --import
33+
gpg --export-secret-keys >$HOME/.gnupg/secring.gpg
34+
gpg --list-secret-keys --keyid-format LONG
35+
ls -l $HOME/.gnupg
36+
37+
# FIXME Check https://github.com/allure-framework/allure2/blob/430255d8cf5c236ed29bc0df0b72dcd9389c3df9/.github/workflows/release.yaml
38+
- name: Publish Release Candidate
39+
run: |
40+
./gradlew -PghGitSourceUsername=cbeust -PghGitSourcePassword=${{ secrets.GITHUB_TOKEN }} -PghDryRun -PghNexusUsername=${{ secrets.SONATYPE_USER }} -PghNexusPassword=${{ secrets.SONATYPE_PASSWORD }} -Psigning.secretKeyRingFile=$HOME/.gnupg/secring.gpg -Psigning.password="" -Psigning.keyId=${{ secrets.GPG_KEY_ID }} -Prc=${{ github.event.inputs.release_candidate }} prepareVote
41+
42+
- name: Display next step
43+
run: |
44+
echo "Now run 'release-maven-central.yml' workflow using the same Release Candidate Number (rc #)"
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: Release TestNG to Maven Central
4+
5+
# Trigger this workflow whenever code is pushed to "master" branch.defaults:
6+
# We would like to publish to maven central for both snapshot and release versions.
7+
on:
8+
workflow_dispatch:
9+
inputs:
10+
release_candidate:
11+
description: The release candidate number that was already published
12+
required: true
13+
default: '1'
14+
staging_repository_id:
15+
description: The staging repository ID obtained from workflow run logs of "publish-maven-central.yml" for e.g., (orgtestng-1082)
16+
required: true
17+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
18+
jobs:
19+
# This workflow contains a single job called "build"
20+
build:
21+
# The type of runner that the job will run on
22+
runs-on: ubuntu-latest
23+
24+
# Steps represent a sequence of tasks that will be executed as part of the job
25+
steps:
26+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
27+
- uses: actions/[email protected]
28+
with:
29+
fetch-depth: 0
30+
31+
- name: Gradle wrapper validation
32+
uses: gradle/[email protected]
33+
34+
# Runs a single command using the runners shell
35+
- name: Install gpg secret key
36+
run: |
37+
cat <(echo -e "${{ secrets.GPG_SECRET_KEY }}") | gpg --batch --import
38+
gpg --export-secret-keys >$HOME/.gnupg/secring.gpg
39+
gpg --list-secret-keys --keyid-format LONG
40+
ls -l $HOME/.gnupg
41+
42+
- name: Create Nexus.txt with staging repository details
43+
run: |
44+
mkdir -p build/stagingRepositories
45+
echo -n ${{ github.event.inputs.staging_repository_id }} > build/stagingRepositories/nexus.txt
46+
47+
# FIXME Check https://github.com/allure-framework/allure2/blob/430255d8cf5c236ed29bc0df0b72dcd9389c3df9/.github/workflows/release.yaml
48+
- name: Publish Release Candidate
49+
run: |
50+
./gradlew -PghGitSourceUsername=cbeust -PghGitSourcePassword=${{ secrets.GITHUB_TOKEN }} -PghDryRun -PghNexusUsername=${{ secrets.SONATYPE_USER }} -PghNexusPassword=${{ secrets.SONATYPE_PASSWORD }} -Psigning.secretKeyRingFile=$HOME/.gnupg/secring.gpg -Psigning.password="" -Psigning.keyId=${{ secrets.GPG_KEY_ID }} -Prc=${{ github.event.inputs.release_candidate }} publishDist

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,6 @@ test-output-tests
2424
testng.iml
2525
z_build
2626
.DS_Store
27+
**/bin/
2728

2829
**/Version.java

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ kotlin.code.style=official
55
# Note: testng.kotlin-library.gradle.kts adds kotlin-stdlib for testImplementation
66
kotlin.stdlib.default.dependency=false
77

8-
testng.version=7.5
8+
testng.version=7.5.1
99

1010
group=org.testng
1111

versions.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ plugin.com.github.johnrengelman.shadow=7.0.0
1111

1212
plugin.com.github.vlsi.gradle-extensions=1.74
1313

14-
plugin.com.github.vlsi.stage-vote-release=1.74
14+
plugin.com.github.vlsi.stage-vote-release=1.78
1515

1616
version.ch.qos.logback..logback-classic=1.2.3
1717

0 commit comments

Comments
 (0)