build: Akka 2.9.3-M3 and publish to Akka repo (#1850) #332
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
name: Publish | |
on: | |
push: | |
branches: | |
- main | |
tags: ["*"] | |
jobs: | |
sbt: | |
name: sbt publish | |
runs-on: ubuntu-22.04 | |
if: github.repository == 'akka/akka-grpc' | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
with: | |
# we don't know what commit the last tag was it's safer to get entire repo so previousStableVersion resolves | |
fetch-depth: 0 | |
- name: Cache Coursier cache | |
uses: coursier/[email protected] | |
- name: Set up JDK 11 | |
uses: coursier/[email protected] | |
with: | |
jvm: temurin:1.11.0.17 | |
- name: Publish | |
run: |- | |
sbt +publishSigned | |
CI_RELEASE=akka-grpc-codegen/publishSigned CI_SNAPSHOT_RELEASE=akka-grpc-codegen/publish sbt ++2.13.10\! publishSigned | |
env: | |
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }} | |
PGP_SECRET: ${{ secrets.PGP_SECRET }} | |
PUBLISH_USER: ${{ secrets.PUBLISH_USER }} | |
PUBLISH_PASSWORD: ${{ secrets.PUBLISH_PASSWORD }} | |
gradle-plugin: | |
name: Release gradle plugin | |
runs-on: ubuntu-22.04 | |
if: github.repository == 'akka/akka-grpc' | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
with: | |
# we don't know what commit the last tag was it's safer to get entire repo so previousStableVersion resolves | |
fetch-depth: 0 | |
- name: Set up JDK 11 | |
uses: coursier/[email protected] | |
with: | |
jvm: temurin:1.11.0.17 | |
- name: Publish Plugin to Gradle Plugin Repository | |
run: cd gradle-plugin && ./gradlew publishPlugins -Pgradle.publish.key='${{ secrets.GRADLE_PUBLISH_KEY }}' -Pgradle.publish.secret='${{ secrets.GRADLE_SECRET }}' | |
documentation: | |
name: Documentation | |
runs-on: ubuntu-22.04 | |
if: github.repository == 'akka/akka-grpc' | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
with: | |
# we don't know what commit the last tag was it's safer to get entire repo so previousStableVersion resolves | |
fetch-depth: 0 | |
- name: Cache Coursier cache | |
uses: coursier/[email protected] | |
- name: Set up JDK 11 | |
uses: coursier/[email protected] | |
with: | |
jvm: temurin:1.11 | |
- name: Publish | |
run: |- | |
eval "$(ssh-agent -s)" | |
echo $SCP_SECRET | base64 -d > /tmp/id_rsa | |
chmod 600 /tmp/id_rsa | |
ssh-add /tmp/id_rsa | |
sbt akka-grpc-docs/publishRsync | |
env: | |
SCP_SECRET: ${{ secrets.SCP_SECRET }} |