Merge pull request #18472 from ant-design/fix-site-workflow

Create deploy-site.yml
This commit is contained in:
信鑫-King 2019-08-26 13:55:38 +08:00 committed by GitHub
commit 493bd72a0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 16 deletions

16
.github/main.workflow vendored
View File

@ -1,16 +0,0 @@
workflow "Deploy website" {
on = "release"
resolves = ["Deploy"]
}
action "Deploy" {
uses = "JamesIves/github-pages-deploy-action@master"
secrets = [
"ACCESS_TOKEN",
]
env = {
BUILD_SCRIPT = "npm install && npm run predeploy"
BRANCH = "gh-pages"
FOLDER = "_site"
}
}

19
.github/workflows/deploy-site.yml vendored Normal file
View File

@ -0,0 +1,19 @@
name: Deploy website
on:
release:
branches:
- master
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
- name: Deploy website
uses: JamesIves/github-pages-deploy-action@master
env:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
BRANCH: gh-pages
FOLDER: _site
BUILD_SCRIPT: npm install && npm run predeploy