2021-01-15 12:06:04 +00:00
|
|
|
name: Build and Publish Documentation
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
- v*
|
|
|
|
|
2021-07-23 09:00:07 +00:00
|
|
|
env:
|
2023-04-26 04:54:05 +00:00
|
|
|
STRUCTOR_VERSION: v1.13.2
|
2021-07-23 09:00:07 +00:00
|
|
|
MIXTUS_VERSION: v0.4.1
|
|
|
|
|
2021-01-15 12:06:04 +00:00
|
|
|
jobs:
|
|
|
|
|
|
|
|
docs:
|
|
|
|
name: Doc Process
|
2024-04-22 15:04:05 +00:00
|
|
|
runs-on: ubuntu-latest
|
2021-01-15 12:06:04 +00:00
|
|
|
if: github.repository == 'traefik/traefik'
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Check out code
|
2024-01-09 16:00:07 +00:00
|
|
|
uses: actions/checkout@v4
|
2021-01-15 12:06:04 +00:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
|
|
|
|
- name: Login to DockerHub
|
2024-07-29 13:58:04 +00:00
|
|
|
uses: docker/login-action@v3
|
2021-01-15 12:06:04 +00:00
|
|
|
with:
|
|
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
|
|
|
|
|
|
- name: Install Structor ${{ env.STRUCTOR_VERSION }}
|
|
|
|
run: curl -sSfL https://raw.githubusercontent.com/traefik/structor/master/godownloader.sh | sh -s -- -b $HOME/bin ${STRUCTOR_VERSION}
|
|
|
|
|
2021-02-12 18:08:04 +00:00
|
|
|
- name: Install Seo-doc
|
|
|
|
run: curl -sSfL https://raw.githubusercontent.com/traefik/seo-doc/master/godownloader.sh | sh -s -- -b "${HOME}/bin"
|
|
|
|
|
2021-01-15 12:06:04 +00:00
|
|
|
- name: Install Mixtus ${{ env.MIXTUS_VERSION }}
|
|
|
|
run: curl -sSfL https://raw.githubusercontent.com/traefik/mixtus/master/godownloader.sh | sh -s -- -b $HOME/bin ${MIXTUS_VERSION}
|
|
|
|
|
|
|
|
- name: Build documentation
|
|
|
|
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
|
2021-01-15 12:21:43 +00:00
|
|
|
env:
|
2023-03-20 17:30:08 +00:00
|
|
|
STRUCTOR_LATEST_TAG: ${{ vars.STRUCTOR_LATEST_TAG }}
|
2021-01-15 12:06:04 +00:00
|
|
|
|
2021-02-12 18:08:04 +00:00
|
|
|
- name: Apply seo
|
2022-02-15 16:04:34 +00:00
|
|
|
run: $HOME/bin/seo -path=./site -product=traefik
|
2021-02-12 18:08:04 +00:00
|
|
|
|
2021-01-15 12:06:04 +00:00
|
|
|
- name: Publish documentation
|
2023-03-22 15:40:06 +00:00
|
|
|
run: $HOME/bin/mixtus --dst-doc-path="./traefik" --dst-owner=traefik --dst-repo-name=doc --git-user-email="30906710+traefiker@users.noreply.github.com" --git-user-name=traefiker --src-doc-path="./site" --src-owner=traefik --src-repo-name=traefik
|
2021-01-15 12:06:04 +00:00
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GH_TOKEN_REPO }}
|