-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into ui-table-layout-hints
- Loading branch information
Showing
65 changed files
with
2,129 additions
and
1,012 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Build Main Docs | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
package: | ||
description: The plugin to publish the docs for | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
check-make-docs: | ||
runs-on: ubuntu-22.04 | ||
outputs: | ||
files_exists: ${{ steps.check_files.outputs.files_exists }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Check file existence | ||
id: check_files | ||
uses: andstor/file-existence-action@v3 | ||
with: | ||
files: "plugins/${{ inputs.package }}/make_docs.py" | ||
|
||
build-plugin: | ||
if: needs.check-make-docs.outputs.files_exists == 'true' | ||
needs: check-make-docs | ||
uses: ./.github/workflows/build-python-package.yml | ||
with: | ||
package: ${{ inputs.package }} | ||
|
||
main-docs: | ||
needs: build-plugin | ||
uses: ./.github/workflows/make-docs.yml | ||
secrets: inherit | ||
with: | ||
package: ${{ inputs.package }} | ||
version: 'main' | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: Build Python Package | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
package: | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
build-python-package: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Check file existence | ||
id: check_files | ||
uses: andstor/file-existence-action@v3 | ||
with: | ||
files: "plugins/${{ inputs.package }}/src/js/package.json" | ||
|
||
- name: Setup Node | ||
if: steps.check_files.outputs.files_exists == 'true' | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: '.nvmrc' | ||
cache: 'npm' | ||
|
||
- name: Install npm dependencies | ||
if: steps.check_files.outputs.files_exists == 'true' | ||
run: npm ci | ||
|
||
- name: Build npm packages | ||
if: steps.check_files.outputs.files_exists == 'true' | ||
run: npm run build -- --scope "@deephaven/js-plugin-${{ inputs.package }}" | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.x' | ||
|
||
- name: Install build dependencies | ||
run: python -m pip install --upgrade setuptools wheel build | ||
|
||
- name: Build wheel | ||
run: python -m build --wheel --sdist plugins/${{ inputs.package }} | ||
|
||
- name: Upload dist | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: dist-${{ inputs.package }} | ||
path: plugins/${{ inputs.package }}/dist/ | ||
if-no-files-found: error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: Make Docs | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
package: | ||
required: true | ||
type: string | ||
version: | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
make-docs: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
# assume that the dist artifact is already available from calling build-python-package.yml before this workflow | ||
- name: Download dist | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: dist-${{ inputs.package }} | ||
path: plugins/${{ inputs.package }}/dist/ | ||
|
||
- name: Install requirements | ||
run: pip install -r plugins/${{ inputs.package }}/requirements.txt | ||
|
||
- name: Install wheel | ||
run: pip install plugins/${{ inputs.package }}/dist/*.whl | ||
|
||
- name: Run make_docs.py | ||
run: python plugins/${{ inputs.package }}/make_docs.py | ||
|
||
- name: Setup rclone | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y rclone | ||
mkdir -p $HOME/.config | ||
mkdir -p $HOME/.config/rclone | ||
cat << EOF > $HOME/.config/rclone/rclone.conf | ||
[plugindocs] | ||
type = s3 | ||
provider = Cloudflare | ||
access_key_id = ${{ secrets.DOCS_CLOUDFLARE_ACCESS_KEY_ID }} | ||
secret_access_key = ${{ secrets.DOCS_CLOUDFLARE_SECRET_ACCESS_KEY }} | ||
endpoint = ${{ secrets.DOCS_CLOUDFLARE_ENDPOINT }} | ||
no_check_bucket = true | ||
acl = private | ||
EOF | ||
- name: Sync docs | ||
run: rclone sync plugins/${{ inputs.package }}/docs/build/markdown/ plugindocs:website/deephaven/deephaven-plugins/${{ inputs.package }}/${{ inputs.version }}/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.