docs: Only release docs for specific versions.

This commit is contained in:
Ruben Verborgh 2021-01-06 12:13:09 +01:00
parent 8343dad7f1
commit 93c666ca25
2 changed files with 5 additions and 2 deletions

View File

@ -4,6 +4,8 @@ on:
push: push:
branches: branches:
- master - master
tags:
- v*
pull_request: pull_request:
branches: branches:
- master - master
@ -116,13 +118,13 @@ jobs:
path: docs path: docs
retention-days: 1 retention-days: 1
gh-pages: publish-docs:
needs: needs:
- docs - docs
- lint - lint
- test - test
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master' if: startsWith(github.ref, 'refs/tags/v')
steps: steps:
- uses: actions/download-artifact@v2 - uses: actions/download-artifact@v2
with: with:

View File

@ -2,5 +2,6 @@
"name": "Community Solid Server", "name": "Community Solid Server",
"hideGenerator": true, "hideGenerator": true,
"entryPoints": "src", "entryPoints": "src",
"includeVersion": true,
"out": "docs" "out": "docs"
} }