From 0c53b7121e5b8b8fb487cd63c5c969c35c01e154 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?nils=20m=C3=A5s=C3=A9n?= Date: Tue, 27 Apr 2021 15:32:54 +0200 Subject: [PATCH] ci: move docs to separate action (#942) --- .github/workflows/publish-docs.yml | 33 ++++++++++++++++++++++++++++++ .github/workflows/release.yml | 23 --------------------- 2 files changed, 33 insertions(+), 23 deletions(-) create mode 100644 .github/workflows/publish-docs.yml diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml new file mode 100644 index 0000000..ee3fd09 --- /dev/null +++ b/.github/workflows/publish-docs.yml @@ -0,0 +1,33 @@ +name: Publish Docs + +on: + workflow_dispatch: { } + workflow_run: + workflows: [ "Release (Production)" ] + branches: [ main ] + types: + - completed + +jobs: + publish-docs: + name: Publish Docs + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: Install mkdocs + run: | + pip install \ + mkdocs \ + mkdocs-material \ + md-toc + - name: Generate docs + run: mkdocs gh-deploy --strict +# - name: Publish docs +# uses: peaceiris/actions-gh-pages@v3 +# with: +# github_token: ${{ secrets.GITHUB_TOKEN }} +# publish_dir: ./site + diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 871ac9d..919783b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -187,29 +187,6 @@ jobs: docker manifest push ghcr.io/containrrr/watchtower:$(echo $TAG | sed 's/^v*//') && \ docker manifest push ghcr.io/containrrr/watchtower:latest - publish-docs: - name: Publish Docs - needs: build - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v2 - with: - fetch-depth: 0 - - name: Install mkdocs - run: | - pip install \ - mkdocs \ - mkdocs-material \ - md-toc - - name: Generate docs - run: mkdocs build - - name: Publish docs - uses: peaceiris/actions-gh-pages@v3 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./site - renew-docs: name: Refresh pkg.go.dev needs: build