Skip to content

Commit 8156ccd

Browse files
committed
versioned docs in ci
1 parent 7020553 commit 8156ccd

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
name: test and deploy docs
1+
name: deploy docs and publish package
22
on:
33
push:
4-
branches:
5-
- main
4+
tags:
5+
- "*"
66
permissions:
77
contents: write
88
jobs:
@@ -14,11 +14,12 @@ jobs:
1414
run: |
1515
git config user.name github-actions[bot]
1616
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
17+
git fetch origin gh-pages --depth=1
1718
- uses: actions/setup-python@v5
1819
with:
1920
python-version: '3.12'
2021
cache: 'pip'
2122
cache-dependency-path: 'pyproject.toml'
2223
- run: pip install -e .\[all,docs\]
2324
- run: pytest -x -vv --cov=src tests/
24-
- run: mkdocs gh-deploy --force
25+
- run: mike deploy -u -p ${{ github.ref_name }} latest

0 commit comments

Comments
 (0)