diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5cd17344f..fe45fdb34 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,6 +30,8 @@ jobs: - name: Setup Scala with JDK 8 uses: olafurpg/setup-scala@v10 + with: + java-version: adopt@1.8.0-275 - name: Cache Coursier cache uses: coursier/cache-action@v5 @@ -40,6 +42,35 @@ jobs: SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} run: sbt ci-release + + documentation: + # runs on main repo only + if: github.repository == 'akka/akka-persistence-jdbc' + name: Documentation + # the release environment provides access to secrets required in the release process + # https://github.com/akka/akka-persistence-jdbc/settings/environments/164872635/edit + environment: release + runs-on: ubuntu-18.04 + steps: + - name: Checkout + uses: actions/checkout@v2 + 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: Checkout GitHub merge + if: github.event.pull_request + run: |- + git fetch origin pull/${{ github.event.pull_request.number }}/merge:scratch + git checkout scratch + + - name: Setup Scala with JDK 8 + uses: olafurpg/setup-scala@v10 + with: + java-version: adopt@1.11.0-9 + + - name: Cache Coursier cache + uses: coursier/cache-action@v5 - name: Publish API and reference documentation env: diff --git a/project/plugins.sbt b/project/plugins.sbt index ab9b98042..45d7aac29 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -8,7 +8,7 @@ addSbtPlugin("com.lightbend.sbt" % "sbt-java-formatter" % "0.7.0") addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.5.10") addSbtPlugin("com.dwijnand" % "sbt-dynver" % "4.1.1") // docs -addSbtPlugin("com.lightbend.akka" % "sbt-paradox-akka" % "0.44") +addSbtPlugin("com.lightbend.akka" % "sbt-paradox-akka" % "0.45") addSbtPlugin("com.typesafe.sbt" % "sbt-site" % "1.4.1") addSbtPlugin("com.github.sbt" % "sbt-unidoc" % "0.5.0") addSbtPlugin("com.lightbend.sbt" % "sbt-publish-rsync" % "0.2")