From f3fdd134414cc4018f2c19c6d30b7432d7e72841 Mon Sep 17 00:00:00 2001 From: Johannes Rudolph Date: Mon, 13 Feb 2023 12:07:05 +0100 Subject: [PATCH] fix nightly doc publishing to create target directory first (#176) Former plan did not work because our sync-nighlies scripts automatically adds a trailing slash to the local_path, which fails the rsync invocation... --- .github/workflows/publish-nightly-docs.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-nightly-docs.yml b/.github/workflows/publish-nightly-docs.yml index db24a05adf..b5de6f34c4 100644 --- a/.github/workflows/publish-nightly-docs.yml +++ b/.github/workflows/publish-nightly-docs.yml @@ -55,12 +55,16 @@ jobs: run: |- sbt -Dpekko.genjavadoc.enabled=true docs/paradox unidoc + - name: Make dummy directory + run: |- + mkdir empty-dir + - name: Setup nightly docs directory uses: ./.github/actions/sync-nightlies with: upload: true switches: --archive --compress --update --delete --progress - local_path: LICENSE # dummy to make rsync create the docs directory first + 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 }}