-
Notifications
You must be signed in to change notification settings - Fork 693
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to releasing with sbt-ci-release under new org (#3044)
- Loading branch information
Showing
4 changed files
with
33 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,69 +1,22 @@ | ||
name: release | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: "The release version" | ||
required: true | ||
branch: | ||
description: "The branch to release from" | ||
required: true | ||
default: 'master' | ||
|
||
push: | ||
branches: [master] | ||
tags: ["*"] | ||
jobs: | ||
release: | ||
publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout the repo | ||
uses: actions/checkout@v2 | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up JDK | ||
uses: actions/setup-java@v1 | ||
- uses: actions/setup-java@v4 | ||
with: | ||
distribution: temurin | ||
java-version: 11 | ||
|
||
- name: Launch elastic docker | ||
run: docker run -d -it -p 39227:9200 -p 39337:9300 -e "discovery.type=single-node" -v /home/runner/work/elastic4s/elastic4s/elastic4s-tests/src/test/resources/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml docker.elastic.co/elasticsearch/elasticsearch:8.12.2 | ||
|
||
- name: Import GPG key | ||
id: import_gpg | ||
uses: crazy-max/ghaction-import-gpg@v3 | ||
with: | ||
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} | ||
passphrase: ${{ secrets.PGP_PASSPHRASE }} | ||
|
||
- name: GPG user IDs | ||
run: | | ||
echo "fingerprint: ${{ steps.import_gpg.outputs.fingerprint }}" | ||
echo "keyid: ${{ steps.import_gpg.outputs.keyid }}" | ||
echo "name: ${{ steps.import_gpg.outputs.name }}" | ||
echo "email: ${{ steps.import_gpg.outputs.email }}" | ||
- name: publish 2.12 release | ||
run: sbt ++2.12.12 publishSigned | ||
env: | ||
RELEASE_VERSION: ${{ github.event.inputs.version }} | ||
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }} | ||
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} | ||
|
||
- name: publish 2.13 release | ||
run: sbt ++2.13.4 publishSigned | ||
env: | ||
RELEASE_VERSION: ${{ github.event.inputs.version }} | ||
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }} | ||
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} | ||
|
||
- name: publish 3.0 release | ||
run: sbt ++3.3.0 elastic4s-scala3/publishSigned | ||
- run: sbt ci-release | ||
env: | ||
RELEASE_VERSION: ${{ github.event.inputs.version }} | ||
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }} | ||
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} | ||
|
||
- name: tag release | ||
run: | | ||
git tag v${{ github.event.inputs.version }} | ||
git push --tags | ||
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }} | ||
PGP_SECRET: ${{ secrets.PGP_SECRET }} | ||
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} | ||
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1 @@ | ||
resolvers += Classpaths.sbtPluginReleases | ||
|
||
addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.1.2") | ||
|
||
addSbtPlugin("com.github.sbt" % "sbt-release" % "1.1.0") | ||
addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.5.12") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
ThisBuild / version := "7.9.3-SNAPSHOT" | ||
ThisBuild / version := "8.12.0-SNPSHOT" |