File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -2,8 +2,10 @@ name: Documentation
22
33on :
44 push :
5+ branches :
6+ - master
57 tags :
6- - ' *'
8+ - ' v*.*. *'
79
810jobs :
911 build :
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 }}'
You can’t perform that action at this time.
0 commit comments