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:
parent
45b9b0bcd1
commit
6e0158e221
3 changed files with 44 additions and 30 deletions
36
.github/workflows/publish-docs.yml
vendored
Normal file
36
.github/workflows/publish-docs.yml
vendored
Normal 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 }}
|
||||||
26
.github/workflows/publish.yml
vendored
26
.github/workflows/publish.yml
vendored
|
|
@ -35,29 +35,3 @@ jobs:
|
||||||
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
|
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
|
||||||
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
|
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
|
||||||
WHITESOURCE_PASSWORD: ${{ secrets.WHITESOURCE_PASSWORD }}
|
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 }}
|
|
||||||
|
|
|
||||||
12
RELEASING.md
12
RELEASING.md
|
|
@ -66,19 +66,23 @@ sonatype.
|
||||||
|
|
||||||
It is possible to release a revised documentation to the already existing release.
|
It is possible to release a revised documentation to the already existing release.
|
||||||
|
|
||||||
1. Create a new branch from a release tag. If a revised documentation is for the `v2.6.4` release, then the name of the new branch should be `docs/v2.6.4`.
|
1. Create a new branch from a release tag. If a revised documentation is for the `v2.6.4` release, then the name of the new branch should be `docs/v2.6.4`:
|
||||||
|
```
|
||||||
|
$ git checkout v2.6.4
|
||||||
|
$ git checkout -b docs/v2.6.4
|
||||||
|
```
|
||||||
1. Add and commit `version.sbt` file that pins the version to the one that is being revised. Also set `isSnapshot` to `false` for the stable documentation links. For example:
|
1. Add and commit `version.sbt` file that pins the version to the one that is being revised. Also set `isSnapshot` to `false` for the stable documentation links. For example:
|
||||||
```scala
|
```scala
|
||||||
ThisBuild / version := "2.6.4"
|
ThisBuild / version := "2.6.4"
|
||||||
ThisBuild / isSnapshot := false
|
ThisBuild / isSnapshot := false
|
||||||
```
|
```
|
||||||
1. Make all of the required changes to the documentation.
|
1. Switch to a new branch for your documentation change, make the change
|
||||||
1. Build documentation locally with:
|
1. Build documentation locally with:
|
||||||
```sh
|
```sh
|
||||||
sbt akka-docs/paradoxBrowse
|
sbt akka-docs/paradoxBrowse
|
||||||
```
|
```
|
||||||
1. If the generated documentation looks good, send it to Gustav:
|
1. If the generated documentation looks good, create a PR to the `docs/v2.6.4` branch you created earlier:
|
||||||
```sh
|
```sh
|
||||||
sbt akka-docs/publishRsync
|
sbt akka-docs/publishRsync
|
||||||
```
|
```
|
||||||
1. Do not forget to push the new branch back to GitHub.
|
1. It should automatically be published by GitHub Actions on merge.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue