pekko/.github/workflows/publish-docs.yml
Marcos Pereira 06594e537b
Update contributing guide to remove Jenkins and add Github Actions (#30595)
* Fix some minor format issues
* Review grammar and links
* Remove mentions to Jenkins in the contributing guide
* Avoid running jobs in forked projects
2021-08-31 16:53:19 +02:00

37 lines
1.1 KiB
YAML

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
if: github.repository == 'akka/akka'
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 }}