Auto-publish backported docs (#30422)

* Auto-publish backported docs

* publish docs on ubuntu 20.04

Co-authored-by: Ignasi Marimon-Clos <ignasi35@gmail.com>

* Use the latest 1.11 to publish docs

Co-authored-by: Ignasi Marimon-Clos <ignasi35@gmail.com>

Co-authored-by: Ignasi Marimon-Clos <ignasi35@gmail.com>
This commit is contained in:
Arnout Engelen 2021-08-05 18:19:00 +02:00 committed by GitHub
parent 45b9b0bcd1
commit 6e0158e221
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 44 additions and 30 deletions

36
.github/workflows/publish-docs.yml vendored Normal file
View file

@ -0,0 +1,36 @@
name: Publish docs
on:
push:
branches:
- master
# for testing the GH Action without merging to master,
# in some cases
- test-publish-snapshots
- docs/v*
tags: ["*"]
jobs:
documentation:
name: Documentation
runs-on: ubuntu-20.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: Set up JDK 11
uses: olafurpg/setup-scala@v10
with:
java-version: adopt@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
# using Scala 2.13 here to avoid the infamous problem with missing AskSupport in classpath
sbt -Dakka.build.scalaVersion=2.13.0 -Dakka.genjavadoc.enabled=true publishRsync
env:
SCP_SECRET: ${{ secrets.SCP_SECRET }}

View file

@ -35,29 +35,3 @@ jobs:
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
WHITESOURCE_PASSWORD: ${{ secrets.WHITESOURCE_PASSWORD }}
# TODO publish gradle from here as well
documentation:
name: Documentation
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: Set up JDK 11
uses: olafurpg/setup-scala@v10
with:
java-version: adopt@1.11.0-9
- 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
# using Scala 2.13 here to avoid the infamous problem with missing AskSupport in classpath
sbt -Dakka.build.scalaVersion=2.13.0 -Dakka.genjavadoc.enabled=true publishRsync
env:
SCP_SECRET: ${{ secrets.SCP_SECRET }}