-
Notifications
You must be signed in to change notification settings - Fork 314
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
1 parent
b1d3982
commit 00c8782
Showing
19 changed files
with
179 additions
and
115 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,57 @@ | ||
name: ci-i18n | ||
|
||
on: | ||
push: | ||
branches: | ||
- feat/v2.4.x-i18n | ||
# paths: | ||
# - "site/zh/**" | ||
release: | ||
types: [released] | ||
workflow_dispatch: | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
# This workflow contains a single job called "build " | ||
build: | ||
# The type of runner that the job will run on | ||
runs-on: ubuntu-latest | ||
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
- name: Check out Git repository | ||
uses: actions/checkout@v1 | ||
with: | ||
ref: feat/v2.4.x-i18n | ||
|
||
- name: Extract branch name | ||
shell: bash | ||
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})" | ||
id: extract_branch | ||
|
||
- name: Md2md | ||
run: | | ||
cp site/en/Variables.json ./ | ||
mv site doc_from | ||
sudo npm install @zilliz/mdtomd -g | ||
goover | ||
rm -rf doc_from/* | ||
rm check-link.js | ||
mv doc_to site | ||
- name: Delete And Push | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install jq | ||
cd ../ | ||
git clone -b feat/localization https://.:${{ secrets.P_GITHUB_TOKEN }}@github.com/milvus-io/web-content.git target | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Milvus-doc-bot" | ||
cp ./milvus-docs/version.json ./target | ||
cd target | ||
rm -rf `cat version.json | jq -r .version` | ||
mkdir `cat version.json | jq -r .version` | ||
cp -avr ../milvus-docs/** ./`cat version.json | jq -r .version` | ||
git add . | ||
git commit -m "Release new docs " | ||
git push -f origin feat/localization |
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
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
Oops, something went wrong.