File tree Expand file tree Collapse file tree 2 files changed +47
-9
lines changed Expand file tree Collapse file tree 2 files changed +47
-9
lines changed Original file line number Diff line number Diff line change
1
+ name : Build and Publish Documentation
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - master
7
+ - v*
8
+
9
+ jobs :
10
+
11
+ docs :
12
+ name : Doc Process
13
+ runs-on : ubuntu-latest
14
+ if : github.repository == 'traefik/traefik'
15
+ env :
16
+ STRUCTOR_VERSION : v1.11.2
17
+ MIXTUS_VERSION : v0.4.1
18
+
19
+ steps :
20
+
21
+ - name : Check out code
22
+ uses : actions/checkout@v2
23
+ with :
24
+ fetch-depth : 0
25
+
26
+ - name : Login to DockerHub
27
+ uses : docker/login-action@v1
28
+ with :
29
+ username : ${{ secrets.DOCKERHUB_USERNAME }}
30
+ password : ${{ secrets.DOCKERHUB_TOKEN }}
31
+
32
+ - name : Install Structor ${{ env.STRUCTOR_VERSION }}
33
+ run : curl -sSfL https://raw.githubusercontent.com/traefik/structor/master/godownloader.sh | sh -s -- -b $HOME/bin ${STRUCTOR_VERSION}
34
+
35
+ - name : Install Mixtus ${{ env.MIXTUS_VERSION }}
36
+ run : curl -sSfL https://raw.githubusercontent.com/traefik/mixtus/master/godownloader.sh | sh -s -- -b $HOME/bin ${MIXTUS_VERSION}
37
+
38
+ - name : Build documentation
39
+ run : $HOME/bin/structor -o traefik -r traefik --dockerfile-url="https://raw.githubusercontent.com/traefik/traefik/v1.7/docs.Dockerfile" --menu.js-url="https://raw.githubusercontent.com/traefik/structor/master/traefik-menu.js.gotmpl" --rqts-url="https://raw.githubusercontent.com/traefik/structor/master/requirements-override.txt" --force-edit-url --exp-branch=master --debug
40
+ env :
41
+ STRUCTOR_LATEST_TAG : ${{ secrets.STRUCTOR_LATEST_TAG }}
42
+
43
+ - name : Publish documentation
44
+ run :
$HOME/bin/mixtus --dst-doc-path="./traefik" --dst-owner=traefik --dst-repo-name=doc --git-user-email="[email protected] " --git-user-name=traefiker --src-doc-path="./site" --src-owner=containous --src-repo-name=traefik
45
+ env :
46
+ GITHUB_TOKEN : ${{ secrets.GH_TOKEN_REPO }}
Original file line number Diff line number Diff line change @@ -30,9 +30,6 @@ before_deploy:
30
30
if [ "$TRAVIS_TAG" ]; then
31
31
make release-packages;
32
32
fi;
33
- curl -sfL https://raw.githubusercontent.com/traefik/structor/master/godownloader.sh | bash -s -- -b "${GOPATH}/bin" ${STRUCTOR_VERSION}
34
- curl -sSfL https://raw.githubusercontent.com/traefik/mixtus/master/godownloader.sh | sh -s -- -b "${GOPATH}/bin" ${MIXTUS_VERSION}
35
- structor -o traefik -r traefik --dockerfile-url="https://raw.githubusercontent.com/traefik/traefik/v1.7/docs.Dockerfile" --menu.js-url="https://raw.githubusercontent.com/traefik/structor/master/traefik-menu.js.gotmpl" --rqts-url="https://raw.githubusercontent.com/traefik/structor/master/requirements-override.txt" --force-edit-url --exp-branch=master --debug;
36
33
fi
37
34
38
35
deploy :
@@ -50,9 +47,4 @@ deploy:
50
47
on :
51
48
repo : traefik/traefik
52
49
tags : true
53
- - provider : script
54
- script :
mixtus --dst-doc-path="./traefik" --dst-owner=traefik --dst-repo-name=doc --git-user-email="[email protected] " --git-user-name=traefiker --src-doc-path="./site" --src-owner=containous --src-repo-name=traefik
55
- skip_cleanup : true
56
- on :
57
- repo : traefik/traefik
58
- all_branches : true
50
+
You can’t perform that action at this time.
0 commit comments