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
10 changes: 5 additions & 5 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ jobs:
run: |
echo "readme_changed=true" >> $GITHUB_OUTPUT

# publish-docarray-org:
# needs: check-readme-modification
# if: needs.check-readme-modification.outputs.readme_changed == 'true'
# uses: ./.github/workflows/publish-docarray-org.yml
# secrets: inherit
publish-docarray-org:
needs: check-readme-modification
if: needs.check-readme-modification.outputs.readme_changed == 'true'
uses: ./.github/workflows/publish-docarray-org.yml
secrets: inherit
12 changes: 4 additions & 8 deletions .github/workflows/force-docs-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,19 +69,15 @@ jobs:
cd docs
bash makedocs.sh
cd ..
- name: docs Build
run: |
rm -rf docs
mv site docs
- name: Checkout to GH pages branch (${{ inputs.pages_branch }})
run: |
git fetch origin ${{ inputs.pages_branch }}:${{ inputs.pages_branch }} --depth 1
git checkout -f ${{ inputs.pages_branch }}
git reset --hard HEAD
- name: Moving old doc versions
run: |
cd docs
for i in $(cat _versions.json | jq '.[].version' | tr -d '"'); do if [ -d "$i" ]; then mv "$i" /tmp/gen-html; fi; done
- name: Swap in new docs
run: |
rm -rf ./docs
mv /tmp/gen-html ./docs
- name: Push it up!
run: |
git config --local user.email "${{ inputs.git_config_email }}"
Expand Down
13 changes: 13 additions & 0 deletions scripts/get-last-release-note.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
## under jina root dir
# python scripts/get-last-release-note.py
## result in root/tmp.md

with open('CHANGELOG.md') as fp:
n = []
for v in fp:
if v.startswith('## Release Note'):
n.clear()
n.append(v)

with open('tmp.md', 'w') as fp:
fp.writelines(n)