Skip to content

build: Bump sbt 1.9.1 and include release notes url in pom (#4285) #267

build: Bump sbt 1.9.1 and include release notes url in pom (#4285)

build: Bump sbt 1.9.1 and include release notes url in pom (#4285) #267

Workflow file for this run

name: Publish
on:
push:
branches: [ main ]
tags: [ v* ]
permissions:
contents: read
jobs:
publish-artifacts:
name: Publish artifacts to Sonatype
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3.1.0
with:
fetch-depth: 0
- name: Cache Coursier cache
uses: coursier/cache-action@v6.4.0
- name: Set up JDK 1.11
uses: coursier/setup-action@v1.3.0
with:
jvm: temurin:1.11.0.17 # align with akka/akka
- name: Install graphviz
run: sudo apt-get install -y graphviz
- name: Publish Artifacts to Sonatype / Maven
run: |
sbt ci-release
env:
CI_SONATYPE_RELEASE: "; sonatypePrepare; sonatypeBundleUpload; sonatypeClose"
PGP_SECRET: ${{ secrets.PGP_SECRET }}
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
publish-docs:
name: Publish documentation
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3.1.0
with:
fetch-depth: 0
- name: Cache Coursier cache
uses: coursier/cache-action@v6.4.0
- name: Set up JDK 11
uses: coursier/setup-action@v1.3.0
with:
jvm: temurin:1.11
- name: Publish Documentation
run: |
eval "$(ssh-agent -s)" && echo $SCP_SECRET | base64 -d > /tmp/id_rsa && chmod 600 /tmp/id_rsa && ssh-add /tmp/id_rsa && sbt -Dakka.genjavadoc.enabled=true publishRsync
env:
SCP_SECRET: ${{ secrets.SCP_SECRET }}