Skip to content

Commit

Permalink
update release process documentation as per new sbt project structure
Browse files Browse the repository at this point in the history
  • Loading branch information
novakov-alexey committed Oct 6, 2024
1 parent 7321cb4 commit dd90af2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -353,13 +353,17 @@ P.S. this flag can be deprecated in future when most of the users migrate to the

## Release

Define two environment variables before starting SBT shell:
Create SBT file at ~/.sbt/1.0/sonatype.sbt with the following content:

```bash
export SONATYPE_USERNAME=<your user name for Sonatype>
export SONATYPE_PASSWORD=<your password for Sonatype>
credentials += Credentials("Sonatype Nexus Repository Manager",
"s01.oss.sonatype.org",
"<access token: user name>",
"<access token: password>")
```

replace values with your access token user name and password.

Release new version:

```bash
Expand All @@ -369,7 +373,7 @@ sh release.sh
Increment to next SNAPSHOT version and push to Git server:

```bash
RELEASE_PUBLISH=true sbt 'release with-defaults'
RELEASE_PUBLISH=true sbt "; project scala-api; release with-defaults"
```

## License
Expand Down
6 changes: 3 additions & 3 deletions release.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
set -ex
RELEASE_VERSION_BUMP=true sbt -DflinkVersion=1.18.1 test 'release with-defaults'
RELEASE_VERSION_BUMP=true sbt -DflinkVersion=1.19.1 test 'release with-defaults'
RELEASE_VERSION_BUMP=true sbt -DflinkVersion=1.20.0 test 'release with-defaults'
RELEASE_VERSION_BUMP=true sbt -DflinkVersion=1.18.1 -Dgpg.passphrase="<phrase>" test "; project scala-api; release with-defaults"
RELEASE_VERSION_BUMP=true sbt -DflinkVersion=1.19.1 -Dgpg.passphrase="<phrase>" test "; project scala-api; release with-defaults"
RELEASE_VERSION_BUMP=true sbt -DflinkVersion=1.20.0 -Dgpg.passphrase="<phrase>" test "; project scala-api; release with-defaults"
wait

0 comments on commit dd90af2

Please sign in to comment.