-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #47 from unum-cloud/main-dev
Prototyping client-server communication
- Loading branch information
Showing
4 changed files
with
182 additions
and
52 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 |
---|---|---|
|
@@ -54,12 +54,7 @@ jobs: | |
- name: Install CIBuildWheel | ||
run: python -m pip install cibuildwheel | ||
|
||
- name: Build wheels for Windows | ||
if: matrix.os == 'windows-2022' | ||
run: python -m cibuildwheel | ||
|
||
- name: Build wheels for POSIX | ||
if: matrix.os != 'windows-2022' | ||
- name: Build wheels | ||
run: python -m cibuildwheel | ||
|
||
- uses: actions/upload-artifact@v3 | ||
|
@@ -165,11 +160,8 @@ jobs: | |
- name: Run tests | ||
run: swift test | ||
|
||
deploy_docs: | ||
name: Deploy Docs | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
build_docs: | ||
name: Build Docs | ||
runs-on: ubuntu-22.04 | ||
if: ${{ always() }} | ||
needs: [publish_python, publish_javascript, publish_rust, publish_java, publish_swift] | ||
|
@@ -178,8 +170,6 @@ jobs: | |
uses: actions/checkout@v3 | ||
with: | ||
ref: 'main' | ||
- name: Setup GitHub Pages | ||
uses: actions/configure-pages@v2 | ||
- name: Install dependencies | ||
run: sudo apt update && sudo apt install -y doxygen graphviz dia git && pip install sphinx breathe furo m2r2 sphinxcontrib-googleanalytics==0.2.dev20220708 sphinxcontrib-jquery | ||
- name: Install USearch from PyPi | ||
|
@@ -188,11 +178,43 @@ jobs: | |
run: cd docs && make html | ||
- name: Copy assets | ||
run: cp -r assets build/docs/html/ | ||
- name: Compress assets | ||
run: tar -czvf docs.tar.gz build/docs/html/ | ||
- name: Upload docs to release | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: docs.tar.gz | ||
asset_name: docs.tar.gz | ||
tag: ${{ github.ref }} | ||
|
||
deploy_docs_pages: | ||
name: Deploy GitHub Pages | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
runs-on: ubuntu-22.04 | ||
needs: build_docs | ||
steps: | ||
- uses: robinraju/[email protected] | ||
with: | ||
latest: true | ||
fileName: docs.tar.gz | ||
- name: Setup GitHub Pages | ||
uses: actions/configure-pages@v2 | ||
- name: Upload artifacts | ||
uses: actions/upload-pages-artifact@v1 | ||
with: | ||
# Upload entire repository | ||
path: "./build/docs/html/" | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v1 | ||
|
||
deploy_docs_vercel: | ||
name: Deploy GitHub Vercel | ||
runs-on: ubuntu-22.04 | ||
needs: build_docs | ||
steps: | ||
- name: Notify Vercel | ||
uses: fjogeleit/http-request-action@v1 | ||
with: | ||
url: ${{ secrets.DOCS_VERCEL }} | ||
method: 'POST' |
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