Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
41 changes: 41 additions & 0 deletions .github/workflows/build_docs_on_branch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: BR
## this action is here only for the development phase of docarray v2
## it will be removed once the new version is released
on:
push:
branches:
- feat-rewrite-v2
- test-build-doc

jobs:

deploy-to-netlify:
runs-on: ubuntu-latest
steps:
- run: |
echo "BRANCH_NAME=${{ github.head_ref }}" >> $GITHUB_ENV
- uses: actions/[email protected]
- uses: actions/setup-python@v4
with:
python-version: 3.7
- uses: actions/setup-node@v2
with:
node-version: '14'
- name: Build and Deploy
run: |
npm i -g netlify-cli
python -m pip install --upgrade pip
pip install -r requirements.txt
python -m pip install wheel
python -m pip install poetry
cd ..
python -m poetry config virtualenvs.create false && python -m poetry install --no-interaction --no-ansi --all-extras

cd docs
export NUM_RELEASES=2 # only 2 last tags to save build time
bash makedoc.sh
netlify deploy --dir=_build/dirhtml --alias="ft-${{ env.BRANCH_NAME }}" --message="Deploying docs to ${{ env.BRANCH_NAME }} branch"
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN1 }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
working-directory: docs
8 changes: 0 additions & 8 deletions .github/workflows/ci_only_pr.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: PR

on:
push:
branches:
- feat-rewrite-v2
pull_request:
types: [opened, synchronize, reopened]

Expand Down Expand Up @@ -36,9 +33,6 @@ jobs:
- run: |
echo "BRANCH_NAME=${{ github.head_ref }}" >> $GITHUB_ENV
- uses: actions/[email protected]
with:
repository: jina-ai/docarray
ref: ${{ env.BRANCH_NAME }}
- uses: actions/setup-python@v4
with:
python-version: 3.7
Expand All @@ -48,15 +42,13 @@ jobs:
- name: Build and Deploy
run: |
npm i -g netlify-cli
git fetch origin
python -m pip install --upgrade pip
pip install -r requirements.txt
python -m pip install wheel
python -m pip install poetry
cd ..
python -m poetry config virtualenvs.create false && python -m poetry install --no-interaction --no-ansi --all-extras

git fetch origin
cd docs
export NUM_RELEASES=2 # only 2 last tags to save build time
bash makedoc.sh
Expand Down