diff --git a/.github/workflows/build-docs.yml b/.github/workflows/build-docs.yml index ca979f10418..5067e362f08 100644 --- a/.github/workflows/build-docs.yml +++ b/.github/workflows/build-docs.yml @@ -1,6 +1,8 @@ name: Build docs on PR merge on: + pull_request: + types: [opened, reopened, synchronize] push: branches: - master @@ -22,16 +24,16 @@ jobs: fetch-depth: "0" - uses: actions/setup-node@v2 with: - node-version: "18" + node-version: "20" - - uses: actions/cache@v3 - with: - path: | - ${{ github.workspace }}/**/.cache - key: | - ${{ runner.os }}-docusaurus-${{ hashFiles('**/yarn.lock') }} - restore-keys: | - ${{ runner.os }}-docusaurus-${{ hashFiles('**/yarn.lock') }} +# - uses: actions/cache@v3 +# with: +# path: | +# ${{ github.workspace }}/**/.cache +# key: | +# ${{ runner.os }}-docusaurus-${{ hashFiles('**/yarn.lock') }} +# restore-keys: | +# ${{ runner.os }}-docusaurus-${{ hashFiles('**/yarn.lock') }} - name: Set Git config run: | @@ -43,24 +45,26 @@ jobs: git fetch git checkout build git pull - git merge --no-ff master -m "Auto-merge main back to build" +# git merge --no-ff master -m "Auto-merge main back to build" - name: Install dependencies and build run: | cd website + curl https://raw.githubusercontent.com/near/docs/bucanero-patch-1/website/docusaurus.config.js > docusaurus.config.js yarn yarn docusaurus clear yarn build - yarn crowdin:upload +# yarn crowdin:upload - name: Commit build run: | - git add -f ./website/build ./website/.docusaurus ./website/i18n - if git commit -m "add new build";then - git push - else - echo "Nothing to commit" - fi + echo "ok" +# git add -f ./website/build ./website/.docusaurus ./website/i18n +# if git commit -m "add new build";then +# git push +# else +# echo "Nothing to commit" +# fi env: - NODE_OPTIONS: --max-old-space-size=8192 +# NODE_OPTIONS: --max-old-space-size=8192 CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }} diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js index cc6c6b69606..5d0b4d26fad 100644 --- a/website/docusaurus.config.js +++ b/website/docusaurus.config.js @@ -272,7 +272,7 @@ const config = { }, i18n: { defaultLocale: 'en', - locales: ['en', 'ko', 'vi', 'zh-CN'], + locales: ['en', 'ko', 'vi'], localeConfigs: { 'zh-CN': { label: '简体中文',