Skip to content

Commit

Permalink
fix: update sync.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
yanglbme committed May 2, 2020
1 parent 29c73dc commit aa3762f
Showing 1 changed file with 1 addition and 22 deletions.
23 changes: 1 addition & 22 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,32 +7,11 @@ on:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [8.x, 10.x, 12.x]
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
uses: wearerequired/git-mirror-action@master
env:
SSH_PRIVATE_KEY: ${{ secrets.GITEE_RSA_PRIVATE_KEY }}
with:
source-repo: "[email protected]:doocs/md.git"
destination-repo: "[email protected]: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
destination-repo: "[email protected]:Doocs/md.git"

0 comments on commit aa3762f

Please sign in to comment.