Update branch in publish-1.0-docs.yml (#487)

* Update branch in publish-1.0-docs.yml

* v1.0.1 released
This commit is contained in:
PJ Fanning 2023-07-26 10:03:18 +01:00 committed by GitHub
parent 2405062248
commit 54e933737f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -31,11 +31,12 @@ jobs:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
if: github.repository == 'apache/incubator-pekko' if: github.repository == 'apache/incubator-pekko'
steps: steps:
# TODO we will need to change to a 1.0 branch or a release tag # TODO we will need to change to use a release tag in future
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
with: with:
fetch-depth: 0 fetch-depth: 0
ref: 1.0.x
- name: Setup Java 11 - name: Setup Java 11
uses: actions/setup-java@v3 uses: actions/setup-java@v3
@ -53,20 +54,20 @@ jobs:
# TODO come up with a better way to control the version, possibly based on git tags # TODO come up with a better way to control the version, possibly based on git tags
- name: Build Documentation - name: Build Documentation
run: |- run: |-
sbt -Dpekko.genjavadoc.enabled=true "set ThisBuild / version := \"1.0.0\"; docs/paradox; unidoc" sbt -Dpekko.genjavadoc.enabled=true "set ThisBuild / version := \"1.0.1\"; docs/paradox; unidoc"
# Create directory structure upfront since rsync does not create intermediate directories otherwise # Create directory structure upfront since rsync does not create intermediate directories otherwise
- name: Create directory structure - name: Create directory structure
run: |- run: |-
mkdir -p target/nightly-docs/docs/pekko/1.0.0/ mkdir -p target/nightly-docs/docs/pekko/1.0.1/
mkdir -p target/nightly-docs/docs/pekko/1.0/ mkdir -p target/nightly-docs/docs/pekko/1.0/
cp -r docs/target/paradox/site/main/ target/nightly-docs/docs/pekko/1.0.0/docs cp -r docs/target/paradox/site/main/ target/nightly-docs/docs/pekko/1.0.1/docs
cp -r docs/target/paradox/site/main/ target/nightly-docs/docs/pekko/1.0/docs cp -r docs/target/paradox/site/main/ target/nightly-docs/docs/pekko/1.0/docs
rm -r docs/target/paradox/site/main/ rm -r docs/target/paradox/site/main/
cp -r target/scala-2.13/unidoc target/nightly-docs/docs/pekko/1.0.0/api cp -r target/scala-2.13/unidoc target/nightly-docs/docs/pekko/1.0.1/api
cp -r target/scala-2.13/unidoc target/nightly-docs/docs/pekko/1.0/api cp -r target/scala-2.13/unidoc target/nightly-docs/docs/pekko/1.0/api
rm -r target/scala-2.13/unidoc rm -r target/scala-2.13/unidoc
cp -r target/javaunidoc target/nightly-docs/docs/pekko/1.0.0/japi cp -r target/javaunidoc target/nightly-docs/docs/pekko/1.0.1/japi
cp -r target/javaunidoc target/nightly-docs/docs/pekko/1.0/japi cp -r target/javaunidoc target/nightly-docs/docs/pekko/1.0/japi
rm -r target/javaunidoc rm -r target/javaunidoc
@ -75,7 +76,7 @@ jobs:
with: with:
upload: true upload: true
switches: --archive --compress --update --delete --progress --relative switches: --archive --compress --update --delete --progress --relative
local_path: target/nightly-docs/./docs/pekko/1.0.0 # The intermediate dot is to show `--relative` which paths to operate on local_path: target/nightly-docs/./docs/pekko/1.0.1 # The intermediate dot is to show `--relative` which paths to operate on
remote_path: ${{ secrets.NIGHTLIES_RSYNC_PATH }}/pekko remote_path: ${{ secrets.NIGHTLIES_RSYNC_PATH }}/pekko
remote_host: ${{ secrets.NIGHTLIES_RSYNC_HOST }} remote_host: ${{ secrets.NIGHTLIES_RSYNC_HOST }}
remote_port: ${{ secrets.NIGHTLIES_RSYNC_PORT }} remote_port: ${{ secrets.NIGHTLIES_RSYNC_PORT }}