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:
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:

View File

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