File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change 4
4
python : circleci/python@0.2.1
5
5
6
6
workflows :
7
+ version : 2
7
8
build_and_deploy :
8
9
jobs :
9
10
- build :
10
11
filters :
11
12
branches :
12
- ignore :
13
- - gh-pages
14
-
13
+ only : master
15
14
jobs :
16
15
build :
17
16
docker :
@@ -48,21 +47,17 @@ jobs:
48
47
- ./venv
49
48
key : v1-dependencies-{{ checksum "requirements.txt" }}
50
49
51
- # run tests!
52
- # this example uses Django's built-in test-runner
53
- # other common Python testing frameworks include pytest and nose
54
- # https://pytest.org
55
- # https://nose.readthedocs.io
56
50
- deploy :
57
51
name : " Deploy docs"
58
52
command : |
59
53
git clone --branch=master --depth=1 "https://$USER_NAME:$GITHUB_TOKEN@github.com/tasmota/$CIRCLE_PROJECT_REPONAME.git" deploy && cd deploy
60
54
git clone --branch=gh-pages --depth=1 "https://$USER_NAME:$GITHUB_TOKEN@github.com/tasmota/$CIRCLE_PROJECT_REPONAME.git" site
61
55
. ../venv/bin/activate
62
56
mkdocs build
57
+ cp -r .circleci site/.circleci
63
58
cd site
64
59
git config user.name "$USER_NAME"
65
60
git config user.email "$USER_EMAIL"
66
61
git add --all
67
- git commit -m "[ci skip] Deploy $CIRCLE_BUILD_NUM from CircleCI "
62
+ git commit -m "[ci skip] CircleCI deploy $CIRCLE_BUILD_NUM"
68
63
git push origin gh-pages
You can’t perform that action at this time.
0 commit comments