Skip to content

Commit

Permalink
Docs CI V2 Rework For Old Rsync (#4941)
Browse files Browse the repository at this point in the history
  • Loading branch information
stanbrub authored Dec 13, 2023
1 parent 8614e20 commit dcbd44c
Showing 1 changed file with 35 additions and 15 deletions.
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:
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
if: ${{ github.event_name == 'push' }}
uses: burnett01/[email protected]
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/[email protected]
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/[email protected]
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/[email protected]
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/[email protected]
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/[email protected]
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/[email protected]
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/[email protected]
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

0 comments on commit dcbd44c

Please sign in to comment.