github.com/yankunsam/loki/v2@v2.6.3-0.20220817130409-389df5235c27/.github/workflows/publish-technical-documentation-next.yml (about) 1 name: "publish-technical-documentation-next" 2 3 on: 4 push: 5 branches: 6 - "main" 7 paths: 8 - "docs/sources/**" 9 workflow_dispatch: 10 jobs: 11 test: 12 runs-on: "ubuntu-latest" 13 steps: 14 - name: "Check out code" 15 uses: "actions/checkout@v3" 16 - name: "Build website" 17 # -e HUGO_REFLINKSERRORLEVEL=ERROR prevents merging broken refs with the downside 18 # that no refs to external content can be used as these refs will not resolve in the 19 # docs-base image. 20 run: | 21 docker run -v ${PWD}/docs/sources:/hugo/content/docs/loki/next -e HUGO_REFLINKSERRORLEVEL=ERROR --rm grafana/docs-base:latest /bin/bash -c 'make hugo' 22 23 sync: 24 runs-on: "ubuntu-latest" 25 needs: "test" 26 steps: 27 - name: "Check out code" 28 uses: "actions/checkout@v3" 29 30 - name: "Clone website-sync Action" 31 run: "git clone --single-branch --no-tags --depth 1 -b master https://grafanabot:${{ secrets.GH_BOT_ACCESS_TOKEN }}@github.com/grafana/website-sync ./.github/actions/website-sync" 32 33 - name: "Publish to website repository (next)" 34 uses: "./.github/actions/website-sync" 35 id: "publish-next" 36 with: 37 repository: "grafana/website" 38 branch: "master" 39 host: "github.com" 40 github_pat: "${{ secrets.GH_BOT_ACCESS_TOKEN }}" 41 source_folder: "docs/sources" 42 target_folder: "content/docs/loki/next"