chore: rm lookup recip (#859) #421
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Bump Version | |
on: | |
push: | |
branches: ["main"] | |
jobs: | |
bump-version: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Bump version and push tag | |
id: tag_version | |
uses: mathieudutour/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Set Cargo.toml version to match github tag for docs | |
shell: bash | |
env: | |
RELEASE_TAG: ${{ steps.tag_version.outputs.new_tag }} | |
run: | | |
mv docs/python/src/conf.py docs/python/src/conf.py.orig | |
sed "s/0\\.0\\.0/${RELEASE_TAG//v}/" docs/python/src/conf.py.orig >docs/python/src/conf.py | |
rm docs/python/src/conf.py.orig | |
mv docs/python/requirements-docs.txt docs/python/requirements-docs.txt.orig | |
sed "s/0\\.0\\.0/${RELEASE_TAG//v}/" docs/python/requirements-docs.txt.orig >docs/python/requirements-docs.txt | |
rm docs/python/requirements-docs.txt.orig | |
- name: Commit files and create tag | |
env: | |
RELEASE_TAG: ${{ steps.tag_version.outputs.new_tag }} | |
run: | | |
git config --local user.email "github-actions[bot]@users.noreply.github.com" | |
git config --local user.name "github-actions[bot]" | |
git fetch --tags | |
git checkout -b release-$RELEASE_TAG | |
git add . | |
git commit -m "ci: update version string in docs" | |
git tag -d $RELEASE_TAG | |
git tag $RELEASE_TAG | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
env: | |
RELEASE_TAG: ${{ steps.tag_version.outputs.new_tag }} | |
with: | |
branch: release-${{ steps.tag_version.outputs.new_tag }} | |
force: true | |
tags: true |