Skip to content

Commit

Permalink
fix test publish condition on pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
snigdhasjg committed Jan 31, 2025
1 parent ad2c124 commit f701de5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,14 @@ jobs:
if [[ "${{ env.TEST_PUBLISH }}" == "true" ]]; then
updated_version="${current_version}-${{ github.run_number }}"
sed -i -E "s|(__version__\s+=\s['\"])${current_version}(['\"])|\1${updated_version}\2|g" aws_fusion/__init__.py
cat aws_fusion/__init__.py
current_version="${updated_version}"
fi
echo "::notice file=aws_fusion/__init__.py::version=${current_version}"
echo "version=${current_version}" >> "$GITHUB_OUTPUT"
- name: Add git tag
if: ${{ !env.TEST_PUBLISH }}
if: ${{ env.TEST_PUBLISH == 'false' }}
run: |
tag="v${{ steps.package_info.outputs.version }}"
Expand All @@ -79,5 +78,5 @@ jobs:
- name: Publish release distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: ${{ env.TEST_PUBLISH && 'https://test.pypi.org/legacy/' || '' }}
repository-url: ${{ env.TEST_PUBLISH == 'false' && 'https://test.pypi.org/legacy/' || '' }}

2 changes: 1 addition & 1 deletion aws_fusion/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.7.1'
__version__ = '1.7.2'

Check notice on line 1 in aws_fusion/__init__.py

View workflow job for this annotation

GitHub Actions / Publish

version=1.7.2-37

0 comments on commit f701de5

Please sign in to comment.