Publish blog: Announcing Milvus 3.0: Lake-Native Vector Search and a … #247
This file contains hidden or 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
| name: Translate Milvus Blog Weekly Task | |
| on: | |
| push: | |
| paths: | |
| - "blog/**" | |
| branches: | |
| - master | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: "ubuntu-latest" | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set Node.js 20.x | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: 20.x | |
| - name: Yarn install | |
| uses: borales/actions-yarn@v4 | |
| with: | |
| cmd: install | |
| - name: Translate Milvus Blogs | |
| run: | | |
| git config --global user.email "Milvus-doc-bot@zilliz.com" | |
| git config --global user.name "Milvus-doc-bot" | |
| touch .env | |
| echo CHATGPT_API_URL=${{secrets.CHATGPT_API_URL}} >> .env | |
| echo CHATGPT_API_KEY=${{secrets.CHATGPT_API_KEY}} >> .env | |
| echo CHATGPT_MODEL=${{secrets.CHATGPT_MODEL}} >> .env | |
| echo GH_TOKEN=${{secrets.GH_TOKEN}} >> .env | |
| yarn translate | |
| - name: Commit and push | |
| run: | | |
| git add . | |
| git commit -m "Translate blogs" | |
| git push -f origin master | |
| continue-on-error: true |