Skip to content

Commit f5b2232

Browse files
committed
use mike for versioned deploy
1 parent 7c11462 commit f5b2232

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

‎.github/workflows/docs.yml‎

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,8 @@ name: docs
22

33
on:
44
push:
5-
branches:
6-
- main
7-
8-
pull_request:
9-
branches:
10-
- main
5+
tags:
6+
- 'v*'
117

128
permissions:
139
contents: write
@@ -38,4 +34,4 @@ jobs:
3834
3935
- name: Deploy to GitHub Pages
4036
run: |
41-
mkdocs gh-deploy --force
37+
mike deploy --push --update-aliases ${{ github.ref_name }} latest

0 commit comments

Comments
 (0)