You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pekko.apache.org by jr...@apache.org on 2023/02/14 13:21:32 UTC
[incubator-pekko] branch main updated: change directory structure for nightly documentation publish (#180)
This is an automated email from the ASF dual-hosted git repository.
jrudolph pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-pekko.git
The following commit(s) were added to refs/heads/main by this push:
new 53daac223c change directory structure for nightly documentation publish (#180)
53daac223c is described below
commit 53daac223c62f05b2510bd013f57086efc130d1b
Author: Johannes Rudolph <jo...@gmail.com>
AuthorDate: Tue Feb 14 14:21:26 2023 +0100
change directory structure for nightly documentation publish (#180)
---
.github/workflows/publish-nightly-docs.yml | 52 ++++++------------------------
1 file changed, 10 insertions(+), 42 deletions(-)
diff --git a/.github/workflows/publish-nightly-docs.yml b/.github/workflows/publish-nightly-docs.yml
index b5de6f34c4..c6b88245f8 100644
--- a/.github/workflows/publish-nightly-docs.yml
+++ b/.github/workflows/publish-nightly-docs.yml
@@ -55,53 +55,21 @@ jobs:
run: |-
sbt -Dpekko.genjavadoc.enabled=true docs/paradox unidoc
- - name: Make dummy directory
+ # Create directory structure upfront since rsync does not create intermediate directories otherwise
+ - name: Create nightly directory structure
run: |-
- mkdir empty-dir
+ mkdir -p target/nightly-docs/docs/pekko/${{ github.ref_name }}-snapshot/
+ mv docs/target/paradox/site/main/ target/nightly-docs/docs/pekko/${{ github.ref_name }}-snapshot/docs
+ mv target/scala-2.13/unidoc target/nightly-docs/docs/pekko/${{ github.ref_name }}-snapshot/api
+ mv target/javaunidoc target/nightly-docs/docs/pekko/${{ github.ref_name }}-snapshot/japi
- - name: Setup nightly docs directory
+ - name: Upload nightly docs
uses: ./.github/actions/sync-nightlies
with:
upload: true
- switches: --archive --compress --update --delete --progress
- local_path: empty-dir/ # dummy to make rsync create the docs directory first
- remote_path: ${{ secrets.NIGHTLIES_RSYNC_PATH }}/pekko/pekko-docs-${{ github.ref_name }}
- remote_host: ${{ secrets.NIGHTLIES_RSYNC_HOST }}
- remote_port: ${{ secrets.NIGHTLIES_RSYNC_PORT }}
- remote_user: ${{ secrets.NIGHTLIES_RSYNC_USER }}
- remote_key: ${{ secrets.NIGHTLIES_RSYNC_KEY }}
-
- - name: Upload documentation
- uses: ./.github/actions/sync-nightlies
- with:
- upload: true
- switches: --archive --compress --update --delete --progress
- local_path: docs/target/paradox/site/main/
- remote_path: ${{ secrets.NIGHTLIES_RSYNC_PATH }}/pekko/pekko-docs-${{ github.ref_name }}/docs
- remote_host: ${{ secrets.NIGHTLIES_RSYNC_HOST }}
- remote_port: ${{ secrets.NIGHTLIES_RSYNC_PORT }}
- remote_user: ${{ secrets.NIGHTLIES_RSYNC_USER }}
- remote_key: ${{ secrets.NIGHTLIES_RSYNC_KEY }}
-
- - name: Upload Scala API Docs
- uses: ./.github/actions/sync-nightlies
- with:
- upload: true
- switches: --archive --compress --update --delete --progress
- local_path: target/scala-2.13/unidoc
- remote_path: ${{ secrets.NIGHTLIES_RSYNC_PATH }}/pekko/pekko-docs-${{ github.ref_name }}/api
- remote_host: ${{ secrets.NIGHTLIES_RSYNC_HOST }}
- remote_port: ${{ secrets.NIGHTLIES_RSYNC_PORT }}
- remote_user: ${{ secrets.NIGHTLIES_RSYNC_USER }}
- remote_key: ${{ secrets.NIGHTLIES_RSYNC_KEY }}
-
- - name: Upload Java API Docs
- uses: ./.github/actions/sync-nightlies
- with:
- upload: true
- switches: --archive --compress --update --delete --progress
- local_path: target/javaunidoc
- remote_path: ${{ secrets.NIGHTLIES_RSYNC_PATH }}/pekko/pekko-docs-${{ github.ref_name }}/japi
+ switches: --archive --compress --update --delete --progress --relative
+ local_path: target/nightly-docs/./docs/pekko/ # The intermediate dot is to show `--relative` which paths to operate on
+ remote_path: ${{ secrets.NIGHTLIES_RSYNC_PATH }}/pekko/
remote_host: ${{ secrets.NIGHTLIES_RSYNC_HOST }}
remote_port: ${{ secrets.NIGHTLIES_RSYNC_PORT }}
remote_user: ${{ secrets.NIGHTLIES_RSYNC_USER }}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pekko.apache.org
For additional commands, e-mail: commits-help@pekko.apache.org