diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6aabfee55..6898bf831 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -4,6 +4,8 @@ on: push: branches: - master + schedule: # run 8:00 AM Beijing Time everyday + - cron: '0 0 * * *' jobs: deploy: @@ -21,6 +23,16 @@ jobs: hugo-version: '0.71.1' extended: true + - name: Sync to gitee + uses: Yikun/hub-mirror-action@master + with: + src: github/kubesphere + dst: gitee/kubesphere + white_list: 'website' + dst_key: ${{ secrets.GITEE_PRIVATE_KEY }} + dst_token: ${{ GITEE_TOKEN}} + account_type: org + - name: Build English Website run: hugo --environment upstream --minify