Skip to content

Commit

Permalink
fix: pypi version
Browse files Browse the repository at this point in the history
  • Loading branch information
ali-zahedi committed Mar 28, 2024
1 parent 5fb2436 commit 7a36ad8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ jobs:
pypi-publish:
name: Upload release to PyPI
runs-on: ubuntu-latest
needs: versioning_pipeline
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
Expand All @@ -58,8 +59,9 @@ jobs:
python-version: '3.11'
- name: Update package version
run: |
echo "${{ steps.get_version.outputs.version }}"
sed -i "s/__version__ = \"1.0.0\"/__version__ = \"${{ steps.get_version.outputs.version }}\"/g" azbankgateways/__init__.py
VERSION=${{ needs.versioning_pipeline.outputs.version }}
echo "Version: $VERSION"
sed -i "s/__version__ = \"1.0.0\"/__version__ = \"$VERSION\"/g" azbankgateways/__init__.py
- name: Install build
run: python -m pip install build
- name: Build dist
Expand Down

0 comments on commit 7a36ad8

Please sign in to comment.