mirror of
https://github.com/doocs/md.git
synced 2024-11-24 19:10:34 +08:00
fix: update sync.yml
This commit is contained in:
parent
29c73dc54b
commit
aa3762f45d
23
.github/workflows/sync.yml
vendored
23
.github/workflows/sync.yml
vendored
@ -7,32 +7,11 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
node-version: [8.x, 10.x, 12.x]
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
|
||||||
- name: Use Node.js ${{ matrix.node-version }}
|
|
||||||
uses: actions/setup-node@v1
|
|
||||||
with:
|
|
||||||
node-version: ${{ matrix.node-version }}
|
|
||||||
- name: npm install, build
|
|
||||||
uses: yanglbme/gitee-pages-action@master
|
|
||||||
env:
|
|
||||||
BRANCH: master # 存放产物的分支名称
|
|
||||||
FOLDER: dist # 存放build后产物的目录
|
|
||||||
BUILD_SCRIPT: npm install && npm run build # 执行的命令
|
|
||||||
- name: Sync to Gitee
|
- name: Sync to Gitee
|
||||||
uses: wearerequired/git-mirror-action@master
|
uses: wearerequired/git-mirror-action@master
|
||||||
env:
|
env:
|
||||||
SSH_PRIVATE_KEY: ${{ secrets.GITEE_RSA_PRIVATE_KEY }}
|
SSH_PRIVATE_KEY: ${{ secrets.GITEE_RSA_PRIVATE_KEY }}
|
||||||
with:
|
with:
|
||||||
source-repo: "git@github.com:doocs/md.git"
|
source-repo: "git@github.com:doocs/md.git"
|
||||||
destination-repo: "git@gitee.com:Doocs/md.git"
|
destination-repo: "git@gitee.com:Doocs/md.git"
|
||||||
|
|
||||||
- name: Build Gitee Pages
|
|
||||||
uses: yanglbme/gitee-pages-action@master
|
|
||||||
with:
|
|
||||||
gitee-username: yanglbme
|
|
||||||
gitee-password: ${{ secrets.GITEE_PASSWORD }}
|
|
||||||
gitee-repo: doocs/md
|
|
Loading…
Reference in New Issue
Block a user