change directory structure for nightly documentation publish (#180)
This commit is contained in:
parent
8e79fc96b5
commit
53daac223c
1 changed files with 10 additions and 42 deletions
52
.github/workflows/publish-nightly-docs.yml
vendored
52
.github/workflows/publish-nightly-docs.yml
vendored
|
|
@ -55,53 +55,21 @@ jobs:
|
||||||
run: |-
|
run: |-
|
||||||
sbt -Dpekko.genjavadoc.enabled=true docs/paradox unidoc
|
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: |-
|
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
|
uses: ./.github/actions/sync-nightlies
|
||||||
with:
|
with:
|
||||||
upload: true
|
upload: true
|
||||||
switches: --archive --compress --update --delete --progress
|
switches: --archive --compress --update --delete --progress --relative
|
||||||
local_path: empty-dir/ # dummy to make rsync create the docs directory first
|
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/pekko-docs-${{ github.ref_name }}
|
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 }}
|
|
||||||
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
|
|
||||||
remote_host: ${{ secrets.NIGHTLIES_RSYNC_HOST }}
|
remote_host: ${{ secrets.NIGHTLIES_RSYNC_HOST }}
|
||||||
remote_port: ${{ secrets.NIGHTLIES_RSYNC_PORT }}
|
remote_port: ${{ secrets.NIGHTLIES_RSYNC_PORT }}
|
||||||
remote_user: ${{ secrets.NIGHTLIES_RSYNC_USER }}
|
remote_user: ${{ secrets.NIGHTLIES_RSYNC_USER }}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue