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/13 10:17:42 UTC
[incubator-pekko] branch main updated: create dedicated publish-nightly-docs action and make sure target directory exists (#175)
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 449296fe8a create dedicated publish-nightly-docs action and make sure target directory exists (#175)
449296fe8a is described below
commit 449296fe8ad3d7b4a0838278257dd26eb9ea0b39
Author: Johannes Rudolph <jo...@gmail.com>
AuthorDate: Mon Feb 13 11:17:37 2023 +0100
create dedicated publish-nightly-docs action and make sure target directory exists (#175)
---
...ublish-nightly.yml => publish-nightly-docs.yml} | 80 +++-------------------
.github/workflows/publish-nightly.yml | 40 -----------
2 files changed, 9 insertions(+), 111 deletions(-)
diff --git a/.github/workflows/publish-nightly.yml b/.github/workflows/publish-nightly-docs.yml
similarity index 62%
copy from .github/workflows/publish-nightly.yml
copy to .github/workflows/publish-nightly-docs.yml
index 99fddb1591..db24a05adf 100644
--- a/.github/workflows/publish-nightly.yml
+++ b/.github/workflows/publish-nightly-docs.yml
@@ -17,15 +17,10 @@
# Based on Apache Arrow's java-nightly workflow
# https://github.com/apache/arrow/blob/master/.github/workflows/java_nightly.yml
-name: Publish nightly artifacts
+name: Publish nightly documentation
on:
workflow_dispatch:
- inputs:
- keep:
- description: Number of versions to keep.
- required: false
- default: 30
schedule:
- cron: "0 0 * * *"
@@ -34,7 +29,7 @@ permissions:
jobs:
publish-nightly:
- name: Publish nightly
+ name: Publish nightly documentation
runs-on: ubuntu-20.04
if: github.repository == 'apache/incubator-pekko'
steps:
@@ -53,82 +48,25 @@ jobs:
run: |-
sudo apt-get install graphviz
-# disable mima check until first pekko release is done
-# - name: Report MIMA incompatibility issues
-# run: |-
-# sbt +mimaReportBinaryIssues
-
- - name: Publish to Apache Maven repo
- env:
- NEXUS_USER: ${{ secrets.NEXUS_USER }}
- NEXUS_PW: ${{ secrets.NEXUS_PW }}
- run: sbt +publish
-
- - name: Publish local
- run: |-
- sbt +publishM2
-
- name: Cache Coursier cache
uses: coursier/cache-action@v6.4.0
- - name: Sync from remote
- uses: ./.github/actions/sync-nightlies
- with:
- switches: -avzh --update --delete --progress
- local_path: repo
- remote_path: ${{ secrets.NIGHTLIES_RSYNC_PATH }}/pekko/snapshots
- remote_host: ${{ secrets.NIGHTLIES_RSYNC_HOST }}
- remote_port: ${{ secrets.NIGHTLIES_RSYNC_PORT }}
- remote_user: ${{ secrets.NIGHTLIES_RSYNC_USER }}
- remote_key: ${{ secrets.NIGHTLIES_RSYNC_KEY }}
-
- - shell: bash
- name: Show local repo sync from remote
- run: |
- for i in `ls -t repo/org/apache/pekko/`; do
- echo "- $i: $(find repo/org/apache/pekko/$i -mindepth 1 -maxdepth 1 -type d \
- | wc -l \
- | xargs) versions available"
- done
-
- - shell: bash
- name: Copy snapshots from local m2 repository
- run: |
- mkdir -p repo/org/apache/pekko/
- cp -R $HOME/.m2/repository/org/apache/pekko/ repo/org/apache
-
- - name: Prune repository
- shell: bash
- env:
- KEEP: ${{ github.event.inputs.keep || 30 }}
- run: |
- for i in `ls -t repo/org/apache/pekko/`; do
- find repo/org/apache/pekko/$i -mindepth 1 -maxdepth 1 -type d -print0 \
- | xargs -0 ls -t -d \
- | tail -n +$((KEEP + 1)) \
- | xargs rm -rf
- done
-
- - name: Show repo contents
- run: tree repo
+ - name: Build Documentation
+ run: |-
+ sbt -Dpekko.genjavadoc.enabled=true docs/paradox unidoc
- - name: Sync to Remote
- if: ${{ github.repository == 'apache/incubator-pekko' }}
+ - name: Setup nightly docs directory
uses: ./.github/actions/sync-nightlies
with:
upload: true
- switches: -avzh --omit-dir-times --update --delete --progress
- local_path: repo
- remote_path: ${{ secrets.NIGHTLIES_RSYNC_PATH }}/pekko/snapshots
+ switches: --archive --compress --update --delete --progress
+ local_path: LICENSE # 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: Build Documentation
- run: |-
- sbt -Dpekko.genjavadoc.enabled=true docs/paradox unidoc
-
- name: Upload documentation
uses: ./.github/actions/sync-nightlies
with:
diff --git a/.github/workflows/publish-nightly.yml b/.github/workflows/publish-nightly.yml
index 99fddb1591..23fbca1beb 100644
--- a/.github/workflows/publish-nightly.yml
+++ b/.github/workflows/publish-nightly.yml
@@ -124,43 +124,3 @@ jobs:
remote_port: ${{ secrets.NIGHTLIES_RSYNC_PORT }}
remote_user: ${{ secrets.NIGHTLIES_RSYNC_USER }}
remote_key: ${{ secrets.NIGHTLIES_RSYNC_KEY }}
-
- - name: Build Documentation
- run: |-
- sbt -Dpekko.genjavadoc.enabled=true docs/paradox unidoc
-
- - 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_port: ${{ secrets.NIGHTLIES_RSYNC_PORT }}
- remote_user: ${{ secrets.NIGHTLIES_RSYNC_USER }}
- remote_key: ${{ secrets.NIGHTLIES_RSYNC_KEY }}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pekko.apache.org
For additional commands, e-mail: commits-help@pekko.apache.org