diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 4c9dc0e322d..07c4525d090 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -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 \ No newline at end of file + 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 \ No newline at end of file diff --git a/.github/workflows/force-docs-build.yml b/.github/workflows/force-docs-build.yml index 4bbe0b984eb..72b57480e26 100644 --- a/.github/workflows/force-docs-build.yml +++ b/.github/workflows/force-docs-build.yml @@ -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 }}" diff --git a/scripts/get-last-release-note.py b/scripts/get-last-release-note.py new file mode 100644 index 00000000000..75ed1268eba --- /dev/null +++ b/scripts/get-last-release-note.py @@ -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)