Skip to content

Commit 1632876

Browse files
committed
🚀 update travis
1 parent 48bc0db commit 1632876

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.travis.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,15 @@ cache: npm
66

77
script: npm run build
88

9+
after_script:
10+
- cd ./dist
11+
- git init
12+
- git config user.name "${USER_NAME}"
13+
- git config user.email "${USER_EMAIL}"
14+
- git add .
15+
- git commit -m ":rocket: 自动部署"
16+
- git push --force --quiet "https://${$GITHUB_TOKEN}@${GH_REF}" master:${P_BRANCH}
17+
918
deploy:
1019
provider: pages
1120
skip_cleanup: true

0 commit comments

Comments
 (0)