Skip to content

Commit d8bad20

Browse files
committed
update action
1 parent 63467bd commit d8bad20

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

.github/workflows/build_docs.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Checkout repo (full history)
1616
uses: actions/checkout@v4
1717
with:
18-
fetch-depth: 0 # IMPORTANT for tags + mike
18+
fetch-depth: 0
1919

2020
- name: Set up Python
2121
uses: actions/setup-python@v5
@@ -25,11 +25,10 @@ jobs:
2525
- name: Install dependencies
2626
run: |
2727
pip install mkdocs-material mike
28-
pip install . # optional: if your docs import your package
28+
pip install . # optional if docs import your package
2929
3030
- name: Deploy docs
3131
working-directory: docs/
3232
run: |
33-
VERSION=${GITHUB_EVENT_RELEASE_TAG_NAME#v}
34-
ALIAS=latest
35-
mike deploy --push --update-aliases --update-aliases ${{ steps.vars.outputs.version }} latest
33+
mike deploy "${{ github.event.release.tag_name }}" latest --push --update-aliases
34+
mike set-default --push latest

0 commit comments

Comments
 (0)