Skip to content

Commit

Permalink
Improve release process
Browse files Browse the repository at this point in the history
- Modify decomon version installed in *all* tutorials, even in
  subdirectories (use ** pattern)
  • Loading branch information
nhuet authored and ducoffeM committed Jan 8, 2024
1 parent a8fbf5b commit e0f2351
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ jobs:
# install from TestPypi if on a fork
new_pip_spec_pattern="${new_pip_spec_pattern} --extra-index-url https://test.pypi.org/simple/"
fi
sed -i -e "s|${old_pip_spec_pattern}|${new_pip_spec_pattern}|" tutorials/*.ipynb
shopt -s globstar # enable **
sed -i -e "s|${old_pip_spec_pattern}|${new_pip_spec_pattern}|" tutorials/**/*.ipynb
- name: replace decomon version to install in binder environment
run: |
version=${{ needs.deploy.outputs.package_version }}
Expand All @@ -91,7 +92,7 @@ jobs:
echo ${new_tag_name}
git config user.name "Actions"
git config user.email "[email protected]"
git commit binder/environment.yml tutorials/*.ipynb -m "Install appropriate version of decomon"
git commit binder/environment.yml tutorials -m "Install appropriate version of decomon"
git tag ${new_tag_name} -m "Release ${current_tag_name} + installation in tutorials updated"
git push origin ${new_tag_name}
# store new tag name
Expand Down

0 comments on commit e0f2351

Please sign in to comment.