File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4141
4242 - name : Display next step
4343 run : |
44- echo "Now go to https://oss.sonatype.org/index.html#stagingRepositories, select the repo, Close it and then Release it "
44+ echo "Now run 'release-maven-central.yml' workflow using the same Release Candidate Number (rc #) "
Original file line number Diff line number Diff line change 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+ # A workflow run is made up of one or more jobs that can run sequentially or in parallel
15+ jobs :
16+ # This workflow contains a single job called "build"
17+ build :
18+ # The type of runner that the job will run on
19+ runs-on : ubuntu-latest
20+
21+ # Steps represent a sequence of tasks that will be executed as part of the job
22+ steps :
23+ # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
24+ - uses : actions/checkout@v2
25+
26+ - name : Gradle wrapper validation
27+ uses : gradle/wrapper-validation-action@v1
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 }} publishDist
You can’t perform that action at this time.
0 commit comments