Skip to content

Commit e0b78a4

Browse files
committed
chore(TravisCI): 恢复配置文件
Github Action 无法 push 到保护分支 切换回 TravisCI 使用
1 parent dacd4ab commit e0b78a4

2 files changed

Lines changed: 29 additions & 40 deletions

File tree

.github/workflows/git.ci.yml

Lines changed: 0 additions & 40 deletions
This file was deleted.

.travis.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# 指定运行环境
2+
language: node_js
3+
4+
node_js:
5+
- lts/*
6+
7+
branches:
8+
only:
9+
- develop
10+
11+
jobs:
12+
include:
13+
- name: "Push Compile"
14+
if: type = push
15+
install: yarn install
16+
before_script:
17+
- export TZ='Asia/Shanghai'
18+
- rm -rf dist
19+
- rm -rf examples/dist
20+
script:
21+
- yarn dev
22+
- yarn build
23+
after_success:
24+
- git config --global user.name "桔子"
25+
- git config --global user.email "juzi214032@qq.com"
26+
- git add -A
27+
- "git commit -m 'build: Travis CI automatic compilation'"
28+
- git pull --rebase
29+
- git push "https://juzi214032:${GITHUB_TOKEN}@github.com/TaleLin/lin-ui" HEAD:develop

0 commit comments

Comments
 (0)