Skip to content

Commit 8b527fe

Browse files
authored
Merge branch 'main' into feat/hf_properties
2 parents 1510dc6 + fbd6406 commit 8b527fe

File tree

4 files changed

+67
-128
lines changed

4 files changed

+67
-128
lines changed

.github/workflows/deploy-mkdocs.yml

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
tags:
66
- "*"
7+
workflow_dispatch: {}
78

89
jobs:
910
deploy:
@@ -13,26 +14,43 @@ jobs:
1314
steps:
1415
- name: Checkout repo
1516
uses: actions/checkout@v3
17+
with:
18+
fetch-depth: 0
1619

1720
- name: Set up Python
1821
uses: actions/setup-python@v4
1922
with:
20-
python-version: 3.8
23+
python-version: '3.10'
2124

2225
- name: Install Poetry
2326
uses: snok/install-poetry@v1
27+
with:
28+
version: 1.5.1
2429

2530
- name: Cache Poetry
2631
id: cached-poetry-dependencies
2732
uses: actions/cache@v3
2833
with:
2934
path: ~/.cache/pypoetry/virtualenvs
30-
key: ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }}-python-3.8
35+
key: ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }}-python-3.10
3136

3237
- run: poetry --version
3338

3439
- name: Install dependencies
35-
run: poetry install
40+
run: poetry install --all-extras
41+
42+
- name: Get version for deployment
43+
id: get_version
44+
run: |
45+
if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
46+
# For manual runs, get the latest tag
47+
VERSION=$(git describe --tags --abbrev=0)
48+
echo "version=$VERSION" >> $GITHUB_OUTPUT
49+
else
50+
# For tag pushes, use the tag name
51+
VERSION="${{ github.ref_name }}"
52+
echo "version=$VERSION" >> $GITHUB_OUTPUT
53+
fi
3654
3755
- name: fetch from gh-pages
3856
run: git fetch origin gh-pages --depth=1
@@ -44,4 +62,4 @@ jobs:
4462
4563
- name: Deploy with mike
4664
run: |
47-
poetry run mike deploy -b gh-pages --update-aliases --push "${{ github.ref_name }}" "latest"
65+
poetry run mike deploy -b gh-pages --update-aliases --push "${{ steps.get_version.outputs.version }}" "latest"

plotly_resampler/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
__docformat__ = "numpy"
1010
__author__ = "Jonas Van Der Donckt, Jeroen Van Der Donckt, Emiel Deprost"
11-
__version__ = "0.11.0rc1"
11+
__version__ = "0.11.0"
1212

1313
__all__ = [
1414
"__version__",

0 commit comments

Comments
 (0)