mirror of
https://github.com/doocs/md.git
synced 2024-11-28 13:36:32 +08:00
deploy
This commit is contained in:
parent
589236ec80
commit
ec47cc30c4
21
.github/workflows/build.yml
vendored
21
.github/workflows/build.yml
vendored
@ -8,12 +8,19 @@ jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: checkout
|
||||
uses: actions/checkout@master # 将代码拷贝到虚机中
|
||||
- name: npm install, build
|
||||
- name: Checkout 🛎️
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
persist-credentials: false
|
||||
|
||||
- name: Install and Build 🔧
|
||||
run: |
|
||||
npm install
|
||||
npm run build
|
||||
- name: deploy 🚀
|
||||
uses: JamesIves/github-pages-deploy-action@master
|
||||
env:
|
||||
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} # 使用刚新建的secret
|
||||
BRANCH: gh-page # 存放产物的分支名称
|
||||
FOLDER: dist # 存放build后产物的目录
|
||||
BUILD_SCRIPT: npm install && npm run build # 执行的命令
|
||||
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
|
||||
BRANCH: gh-pages
|
||||
FOLDER: dist
|
||||
BUILD_SCRIPT: npm install && npm run build
|
Loading…
Reference in New Issue
Block a user