We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5099a24 commit a07ab22Copy full SHA for a07ab22
1 file changed
.github/workflows/mkdocs.yml
@@ -5,6 +5,8 @@ on:
5
push:
6
branches:
7
- main
8
+ tags:
9
+ - "v*"
10
pull_request:
11
types: # Add closed type
12
- opened
@@ -67,10 +69,14 @@ jobs:
67
69
umbrella-dir: pr-preview
68
70
token: ${{ github.token }}
71
- - name: Build the documentation (mike)
- if: ${{ github.event_name == 'push' }}
72
+ - name: Build the documentation (mike / latest)
73
+ if: github.event_name == 'push' && github.ref == 'refs/heads/main'
74
run: mike deploy latest
75
76
+ - name: Build the documentation (mike / release tag)
77
+ if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
78
+ run: mike deploy --update-aliases "$(git describe)" release
79
+
80
- name: Deploy docs - latest
81
if: ${{ github.event_name == 'push' }}
82
run: git push origin gh-pages
0 commit comments