From 93c666ca2530c746c16325f4875b52c7eeb9712d Mon Sep 17 00:00:00 2001 From: Ruben Verborgh Date: Wed, 6 Jan 2021 12:13:09 +0100 Subject: [PATCH] docs: Only release docs for specific versions. --- .github/workflows/ci.yml | 6 ++++-- typedoc.json | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 16ad4ec7d..17eb29b41 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,6 +4,8 @@ on: push: branches: - master + tags: + - v* pull_request: branches: - master @@ -116,13 +118,13 @@ jobs: path: docs retention-days: 1 - gh-pages: + publish-docs: needs: - docs - lint - test runs-on: ubuntu-latest - if: github.ref == 'refs/heads/master' + if: startsWith(github.ref, 'refs/tags/v') steps: - uses: actions/download-artifact@v2 with: diff --git a/typedoc.json b/typedoc.json index 445c2824e..c043f8904 100644 --- a/typedoc.json +++ b/typedoc.json @@ -2,5 +2,6 @@ "name": "Community Solid Server", "hideGenerator": true, "entryPoints": "src", + "includeVersion": true, "out": "docs" }