docs: update mongo and i18n #529
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
name: site sync | |
on: | |
push: | |
branches: [main] | |
paths: | |
- site/** | |
- CHANGELOG.md | |
# repository_dispatch: | |
# types: [update-hooks-docs] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [16.x] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- run: npm install | |
- run: npm run build --if-present | |
- name: action-zip | |
uses: montudor/[email protected] | |
- uses: redkubes/docusaurus-deploy-action@master | |
with: | |
source-folder: site | |
git-user: czy88840616 | |
git-password: ${{ secrets.GH_TOKEN }} | |
deployment-branch: gh-pages | |
- name: Zip output | |
run: zip -r build/document_archive.zip docs i18n blog versioned_docs versioned_sidebars | |
working-directory: site | |
- name: upload files to OSS | |
uses: fangbinwei/aliyun-oss-website-action@v1 | |
with: | |
accessKeyId: ${{ secrets.DEPLOY_SITE_ACCESS_KEY_ID }} | |
accessKeySecret: ${{ secrets.DEPLOY_SITE_ACCESS_KEY_SECRET }} | |
bucket: midway-next-site-hk | |
# use your own endpoint | |
endpoint: oss-cn-hongkong.aliyuncs.com | |
folder: site/build |