-
Notifications
You must be signed in to change notification settings - Fork 7
/
circle.yml
60 lines (55 loc) · 2.33 KB
/
circle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
version: 2
jobs:
build:
working_directory: ~/agentspeak
docker:
- image: lightjason/docker:jdk
branches:
ignore:
- developing
- /feature.*/
- /hotfix.*/
- /release.*/
- /support.*/
- /dev-.*/
- /gh-.*/
environment:
TZ: "/usr/share/zoneinfo/Europe/Berlin"
GIT_AUTHOR_NAME: CircleCI
GIT_AUTHOR_EMAIL: [email protected]
GIT_COMMITTER_NAME: CircleCI
GIT_COMMITTER_EMAIL: [email protected]
steps:
- checkout
- run:
name: Git Clean
command: git clean -xdf && git fetch -p && git gc --prune=now
- run:
name: Maven Clean
command: mvn -B -DreResolve=false -DactTransitively=true clean dependency:purge-local-repository
- run:
name: Build
command: mvn package site -Dbuild.number=${CIRCLE_BUILD_NUM} -Dcoverall.token=${COVERALL_TOKEN} -Dbuild.commit=${CIRCLE_SHA1}
- run:
name: Json Action List
command: |
xsltproc -o target/xml/documentation.xml target/xml/combine.xslt target/xml/index.xml
saxon -xsl:src/site/action.xslt target/xml/documentation.xml > target/site/sources/action.json
- add_ssh_keys:
fingerprints:
- "4e:e9:25:14:ee:f6:17:42:69:13:b3:2a:55:7a:99:ec"
- run:
name: Deploy Documentation
command: |
mv -f target/site /tmp
rm -Rf *
rm .dockerignore
git push origin :gh-pages || true
git branch -D gh-pages || true
git checkout --orphan gh-pages
mv -f /tmp/site/* .
echo -e 'general:\n branches:\n ignore:\n - /.*/\n' > circle.yml
echo -e '*.*\n!.gitignore\n!circle.yml\n!*.htm*\n!*.css\n!*.js\n!*.png\n!*.gif\n!*.svg\n!*.json\n!*.g4\n!org\.lightjason*\n' > .gitignore
git add --all .
git commit -m "current documentation"
git push origin gh-pages