12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- name: syncToGitee
- env:
-
-
- NODE_OPTIONS: --max-old-space-size=6144
- on:
- push:
- branches: [main]
- jobs:
- repo-sync:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v2
-
- - name: Set time zone
- run: sudo timedatectl set-timezone 'Asia/Shanghai'
- - name: Setup Node.js v14.x
- uses: actions/setup-node@v1
- with:
- node-version: '14.x'
- - name: Get yarn cache directory path
- id: yarn-cache-dir-path
- run: echo "::set-output name=dir::$(yarn cache dir)"
- - uses: actions/cache@v3
- id: yarn-cache
- with:
- path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
- key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
- restore-keys: |
- ${{ runner.os }}-yarn-
- - name: Install
- run: yarn install --frozen-lockfile
- - uses: actions/cache@v3
- with:
-
- path: node_modules/.cache/webpack/
- key: ${{ github.ref.name }}-webpack-build
-
- restore-keys: |
- main-webpack-build
- - name: Build
- run: yarn build
- - name: Deploy
- uses: peaceiris/actions-gh-pages@v3
- with:
- publish_dir: ./dist
- personal_token: ${{ secrets.PERSONAL_TOKEN }}
- commit_message: Update ghPages
- force_orphan: true
- - name: Mirror the Github organization repos to Gitee.
- uses: Yikun/hub-mirror-action@master
- with:
- src: 'github/buqiyuan'
- dst: 'gitee/buqiyuan'
- dst_key: ${{ secrets.GITEE_PRIVATE_KEY }}
- dst_token: ${{ secrets.GITEE_TOKEN }}
- static_list: 'vue3-antd-admin'
- force_update: true
- debug: true
- - name: Build Gitee Pages
- uses: yanglbme/gitee-pages-action@main
- with:
-
- gitee-username: buqiyuan
-
- gitee-password: ${{ secrets.GITEE_PASSWORD }}
-
- gitee-repo: buqiyuan/vue3-antd-admin
-
- https: true
-
- branch: gh-pages
|