Skip to content

Commit

Permalink
🐛 now zeit deploy (#268)
Browse files Browse the repository at this point in the history
  • Loading branch information
信鑫-King authored Mar 2, 2020
1 parent 273c685 commit 7d5d430
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 8 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/now.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: qiankun - deploy
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: build
run: |
yarn install
yarn docs:build
mv docs/.vuepress/dist dist
- uses: amondnet/now-deployment@v2
id: now-deployment-production
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
zeit-token: ${{ secrets.ZEIT_TOKEN }}
now-org-id: ${{ secrets.NOW_ORG_ID }}
now-project-id: ${{ secrets.NOW_PROJECT_ID }}
working-directory: dist
now-args: '--prod'
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ lib
package-lock.json
.eslintcache
.history
.now
10 changes: 3 additions & 7 deletions now.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
{
"name": "qiankun",
"scope": "umijs",
"version": 2,
"builds": [
{
"src": "package.json",
"use": "@now/static-build"
}
],
"builds": [{ "src": "./dist/**", "use": "@now/static" }],
"build": {
"env": {
"NOW_DEPLOY": "true"
}
},
"github": {
"silent": true
"enable": false
},
"alias": ["qiankun.umijs.org"]
}
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
"prettier": "prettier -c --write **/*",
"docs:dev": "vuepress dev docs",
"docs:build": "vuepress build docs",
"now-build": "npm run docs:build && mv docs/.vuepress/dist dist",
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
Expand Down

0 comments on commit 7d5d430

Please sign in to comment.