Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs CI V2 Rework For Old Rsync #4941

Merged
Merged
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 35 additions & 15 deletions .github/workflows/docs-ci-v2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,36 @@ on:
branches: [ 'main', 'release/v*' ]

jobs:
makedirs:
if: ${{ github.event_name == 'push' }}
stanbrub marked this conversation as resolved.
Show resolved Hide resolved
runs-on: ubuntu-22.04
steps:
- name: Make Directories
run: |
mkdir -p tmp-deephaven-core-v2/${{ github.ref_name }}/
cd tmp-deephaven-core-v2/${{ github.ref_name }}/
mkdir -p javadoc pydoc client-api
cd client-api
mkdir -p javascript python cpp-examples cpp r

- name: Deploy Directories
uses: burnett01/rsync-deployments@5.2
with:
switches: -rlptDvz
path: tmp-deephaven-core-v2/
remote_path: deephaven-core-v2/
remote_host: ${{ secrets.DOCS_HOST }}
remote_port: ${{ secrets.DOCS_PORT }}
remote_user: ${{ secrets.DOCS_USER }}
remote_key: ${{ secrets.DEEPHAVEN_CORE_SSH_KEY }}
symlink:
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/heads/release/v') }}
needs: [javadoc, typedoc, pydoc, cppdoc, rdoc]
runs-on: ubuntu-22.04
concurrency:
group: symlink-${{ github.workflow }}-${{ github.ref }}
# We don't want to cancel in-progress jobs against main because that might leave the upload in a bad state.
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Make Symlinks
run: |
mkdir -p tmp-deephaven-core-v2/symlinks;
mkdir -p tmp-deephaven-core-v2/symlinks
cd tmp-deephaven-core-v2/symlinks
ln -s ../${{ github.ref_name }} latest
ln -s ../main next
Expand All @@ -37,6 +52,7 @@ jobs:
remote_user: ${{ secrets.DOCS_USER }}
remote_key: ${{ secrets.DEEPHAVEN_CORE_SSH_KEY }}
javadoc:
needs: [makedirs]
runs-on: ubuntu-22.04
concurrency:
group: javadoc-${{ github.workflow }}-${{ github.ref }}
Expand Down Expand Up @@ -90,7 +106,7 @@ jobs:
if: ${{ github.event_name == 'push' }}
uses: burnett01/rsync-deployments@5.2
with:
switches: -rlptDvz --mkpath --delete
switches: -rlptDvz --delete
path: combined-javadoc/build/docs/javadoc/
remote_path: deephaven-core-v2/${{ github.ref_name }}/javadoc/
remote_host: ${{ secrets.DOCS_HOST }}
Expand All @@ -99,6 +115,7 @@ jobs:
remote_key: ${{ secrets.DEEPHAVEN_CORE_SSH_KEY }}

typedoc:
needs: [makedirs]
runs-on: ubuntu-22.04
concurrency:
group: typedoc-${{ github.workflow }}-${{ github.ref }}
Expand Down Expand Up @@ -147,7 +164,7 @@ jobs:
if: ${{ github.event_name == 'push' }}
uses: burnett01/rsync-deployments@5.2
with:
switches: -rlptDvz --mkpath --delete
switches: -rlptDvz --delete
path: web/client-api/types/build/documentation/
remote_path: deephaven-core-v2/${{ github.ref_name }}/client-api/javascript/
remote_host: ${{ secrets.DOCS_HOST }}
Expand All @@ -156,6 +173,7 @@ jobs:
remote_key: ${{ secrets.DEEPHAVEN_CORE_SSH_KEY }}

pydoc:
needs: [makedirs]
runs-on: ubuntu-22.04
concurrency:
group: pydoc-${{ github.workflow }}-${{ github.ref }}
Expand Down Expand Up @@ -216,7 +234,7 @@ jobs:
if: ${{ github.event_name == 'push' }}
uses: burnett01/rsync-deployments@5.2
with:
switches: -rlptDvz --mkpath --delete
switches: -rlptDvz --delete
path: sphinx/build/docs/
remote_path: deephaven-core-v2/${{ github.ref_name }}/pydoc/
remote_host: ${{ secrets.DOCS_HOST }}
Expand All @@ -228,7 +246,7 @@ jobs:
if: ${{ github.event_name == 'push' }}
uses: burnett01/rsync-deployments@5.2
with:
switches: -rlptDvz --mkpath --delete
switches: -rlptDvz --delete
path: sphinx/build/pyclient-docs/
remote_path: deephaven-core-v2/${{ github.ref_name }}/client-api/python/
remote_host: ${{ secrets.DOCS_HOST }}
Expand All @@ -245,6 +263,7 @@ jobs:
if-no-files-found: ignore

cppdoc:
needs: [makedirs]
runs-on: ubuntu-22.04
concurrency:
group: cppdoc-${{ github.workflow }}-${{ github.ref }}
Expand Down Expand Up @@ -298,7 +317,7 @@ jobs:
if: ${{ github.event_name == 'push' }}
uses: burnett01/rsync-deployments@5.2
with:
switches: -rlptDvz --mkpath --delete
switches: -rlptDvz --delete
path: sphinx/build/cppClientDocs/
remote_path: deephaven-core-v2/${{ github.ref_name }}/client-api/cpp/
remote_host: ${{ secrets.DOCS_HOST }}
Expand All @@ -310,7 +329,7 @@ jobs:
if: ${{ github.event_name == 'push' }}
uses: burnett01/rsync-deployments@5.2
with:
switches: -rlptDvz --mkpath --delete
switches: -rlptDvz --delete
path: sphinx/build/cppExamplesDocs/
remote_path: deephaven-core-v2/${{ github.ref_name }}/client-api/cpp-examples/
remote_host: ${{ secrets.DOCS_HOST }}
Expand All @@ -319,6 +338,7 @@ jobs:
remote_key: ${{ secrets.DEEPHAVEN_CORE_SSH_KEY }}

rdoc:
needs: [makedirs]
runs-on: ubuntu-22.04
concurrency:
group: rdoc-${{ github.workflow }}-${{ github.ref }}
Expand Down Expand Up @@ -365,7 +385,7 @@ jobs:
if: ${{ github.event_name == 'push' }}
uses: burnett01/rsync-deployments@5.2
with:
switches: -rlptDvz --mkpath --delete
switches: -rlptDvz --delete
path: R/rdeephaven/docs/
remote_path: deephaven-core-v2/${{ github.ref_name }}/client-api/r/
remote_host: ${{ secrets.DOCS_HOST }}
Expand Down
Loading