44 workflow_dispatch :
55 inputs :
66 new_version :
7- description : ' New version, for example: 0.9.69'
7+ description : ' New version, for example: 0.9.69'
88 required : true
99
1010jobs :
@@ -18,10 +18,10 @@ jobs:
1818 fail-fast : false
1919 steps :
2020 - name : Check out source code
21- uses : actions/checkout@v2
22-
21+ uses : actions/checkout@v3
22+
2323 - name : Set up Python ${{ matrix.python-version }}
24- uses : actions/setup-python@v2
24+ uses : actions/setup-python@v3
2525 with :
2626 python-version : ${{ matrix.python-version }}
2727
3636 pip install -r requirements.txt
3737 pip install -e .
3838
39- - name : Install CmdStan
39+ - name : Install CmdStan
4040 run : |
4141 python -m cmdstanpy.install_cmdstan
4242
@@ -50,15 +50,15 @@ jobs:
5050 git checkout -b release/v${{ github.event.inputs.new_version }}
5151
5252 sed -i 's/^__version__ = .*$/__version__ = '\''${{ github.event.inputs.new_version }}'\''/g' cmdstanpy/_version.py
53-
53+
5454 cd docsrc
5555 make github
5656 cd ..
57-
57+
5858 git add .
5959 git commit -m "release/v${{ github.event.inputs.new_version }}: updating version numbers"
6060 git push -u origin release/v${{ github.event.inputs.new_version }}
61-
61+
6262 - name : Merge into develop
6363 run : |
6464 git checkout develop
@@ -78,13 +78,13 @@ jobs:
7878 git pull
7979 git reset --hard v${{ github.event.inputs.new_version }}
8080 git push -f origin master
81-
81+
8282 - name : Build wheel
8383 run : python setup.py sdist bdist_wheel
8484
8585 - name : Install bdist_wheel
8686 run : pip install dist/*.whl
87-
87+
8888 - name : Upload to pypi
8989 if : success()
9090 env :
0 commit comments