Skip to content

Commit d05473f

Browse files
committed
Add instructions for releasing the java pieces of Selenium
1 parent a87302a commit d05473f

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

README.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,13 @@ bazel test --run_under="xvfb-run -a" //java/... --test_tag_filters=chrome
366366

367367
## Bazel Installation/Troubleshooting
368368

369+
### Selenium Build Docker Image
370+
371+
If you're finding it hard to set up a development environment using bazel
372+
and you have access to Docker, then you can build a Docker image suitable
373+
for building and testing Selenium in from the Dockerfile in the
374+
[dev image](scripts/dev-image/Dockerfile) directory.
375+
369376
### MacOS
370377

371378
#### bazelisk
@@ -401,3 +408,32 @@ The first command will prompt you for a password. The second step requires you t
401408
license, and then accept it by typing "agree".
402409

403410
(Thanks to [this thread](https://github.com/bazelbuild/bazel/issues/4314) for these steps)
411+
412+
## Releasing
413+
414+
Before running a release build, you must ensure that the `--stamp` flag is used by
415+
the build. The easiest way to do this is:
416+
417+
```shell
418+
echo build --stamp >>.bazelrc.local
419+
```
420+
421+
### Java
422+
423+
To release the Java components, make sure you have permission to push to the OSS Sonatype
424+
repo. You will need these credentials when pushing the maven release.
425+
426+
Make sure that the java `CHANGELOG` is up to date, then just run:
427+
428+
```shell
429+
./go release-java
430+
```
431+
432+
This will do two things:
433+
434+
1. Build the publishable artifacts and push them to a staging repo on the
435+
OSS Sonatype server.
436+
2. Create zip files to upload in `build/dist`
437+
438+
You will need to manually release the maven artifacts, and also upload
439+
the artifacts from `build/dist` to the GitHub release.

0 commit comments

Comments
 (0)