File tree Expand file tree Collapse file tree 4 files changed +67
-128
lines changed Expand file tree Collapse file tree 4 files changed +67
-128
lines changed Original file line number Diff line number Diff line change 44 push :
55 tags :
66 - " *"
7+ workflow_dispatch : {}
78
89jobs :
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
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"
Original file line number Diff line number Diff line change 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__" ,
You can’t perform that action at this time.
0 commit comments