mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-01 03:29:39 +08:00
Merge pull request #18472 from ant-design/fix-site-workflow
Create deploy-site.yml
This commit is contained in:
commit
493bd72a0b
16
.github/main.workflow
vendored
16
.github/main.workflow
vendored
@ -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
19
.github/workflows/deploy-site.yml
vendored
Normal 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
|
Loading…
Reference in New Issue
Block a user