Skip to content

Commit 71125eb

Browse files
committed
add documentation
1 parent 9173332 commit 71125eb

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/documentation.yaml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@ name: Documentation
22

33
on:
44
push:
5+
branches:
6+
- master
57
tags:
6-
- '*'
8+
- 'v*.*.*'
79

810
jobs:
911
build:
@@ -22,8 +24,18 @@ jobs:
2224
cmake -Hdocumentation -Bbuild
2325
cmake --build build --target GenerateDocs
2426
27+
- name: Preparing tag
28+
id: prepare_tag
29+
if: startsWith(github.ref, 'refs/tags/')
30+
run: |
31+
TAG_NAME="${GITHUB_REF##refs/tags/}"
32+
echo "::set-output name=tag_name::${TAG_NAME}"
33+
echo "::set-output name=deploy_tag_name::deploy-${TAG_NAME}"
34+
2535
- name: Publish
2636
uses: peaceiris/actions-gh-pages@v3
2737
with:
2838
github_token: ${{ secrets.GITHUB_TOKEN }}
2939
publish_dir: ./build/doxygen/html
40+
tag_name: ${{ steps.prepare_tag.outputs.deploy_tag_name }}
41+
tag_message: 'Deployment ${{ steps.prepare_tag.outputs.tag_name }}'

0 commit comments

Comments
 (0)