forked from jina-ai/serve
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
35 additions
and
12 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,34 @@ | ||
name: CD | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
#on: | ||
# push: | ||
# branches-ignore: | ||
# - '**' # temporally ignore all | ||
|
||
|
||
jobs: | ||
update-doc: | ||
if: | | ||
startsWith(github.event.head_commit.message, 'chore(docs):') | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: push-to-api-repo | ||
run: | | ||
cd docs | ||
docker run --rm \ | ||
-v $(pwd)/proto:/out \ | ||
-v $(pwd)/../jina/proto:/protos \ | ||
pseudomuto/protoc-gen-doc --doc_opt=markdown,docs.md | ||
make dirhtml | ||
cp -r ./_build/dirhtml/ ./ | ||
touch .nojekyll | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "Jina Dev Bot" | ||
git add . && git commit -m "update ${{env.JINA_VERSION}} due to ${{github.event_name}} on ${{github.repository}}" | ||
git status |
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 |
---|---|---|
|
@@ -9,15 +9,4 @@ docker run --rm \ | |
-v $(pwd)/../jina/proto:/protos \ | ||
pseudomuto/protoc-gen-doc --doc_opt=markdown,docs.md | ||
|
||
make dirhtml | ||
exit | ||
echo docs.jina.ai > CNAME | ||
git init | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "Jina Dev Bot" | ||
touch .nojekyll | ||
git add . | ||
git commit -m "$2" -a | ||
git status | ||
cd - | ||
|
||
make dirhtml |