Skip to content

Commit

Permalink
Fixing the workflow script to deploy (#192)
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancescoMarabotto authored Oct 21, 2024
1 parent 66f3019 commit be34f07
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/lemur-publish-release-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
python-version: '3.9'
- name: Autobump version
run: |
# from refs/tags/v0.8.1 get 0.8.1
VERSION=$(echo $GITHUB_REF | sed 's#.*/v##')
PLACEHOLDER='__version__ = "develop"'
PLACEHOLDER='^__version__ =.*'
VERSION_FILE='lemur/__about__.py'
# in case placeholder is missing, exists with code 1 and github actions aborts the build
grep "$PLACEHOLDER" "$VERSION_FILE"
sed -i "s/$PLACEHOLDER/__version__ = \"${VERSION}\"/g" "$VERSION_FILE"
sed -i "s#$PLACEHOLDER#\__version__ = \"${VERSION}\"#g" "$VERSION_FILE"
shell: bash
- name: Install dependencies
run: |
Expand Down

0 comments on commit be34f07

Please sign in to comment.