Skip to content

Commit 5d5fd08

Browse files
committed
fix the condition
1 parent 70bb443 commit 5d5fd08

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

.github/workflows/release.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ jobs:
4949
Please refer to [CHANGELOG.md](./CHANGELOG.md) for details.
5050
5151
- name: Publish to PyPI
52-
if: github.repository == 'notry-cloud/pypi'
5352
env:
5453
TWINE_USERNAME: __token__
5554
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}

makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ build: clean
2424

2525
release: test clean
2626
@echo "Creating release for version $(VERSION)"
27-
@# Update version in __init__.py
28-
@sed -i "s/__version__ = .*/__version__ = '$(VERSION)'/" tfsumpy/__init__.py
27+
@# Update version in __init__.py (works on both Linux and macOS)
28+
@sed -i.bak "s/__version__ = .*/__version__ = '$(VERSION)'/" tfsumpy/__init__.py && rm -f tfsumpy/__init__.py.bak
2929
@# Update version in setup.py if it exists
3030
@if grep -q "version=" setup.py; then \
31-
sed -i "s/version=.*/version='$(VERSION)',/" setup.py; \
31+
sed -i.bak "s/version=.*/version='$(VERSION)',/" setup.py && rm -f setup.py.bak; \
3232
fi
3333
@# Commit changes
3434
git add tfsumpy/__init__.py setup.py

0 commit comments

Comments
 (0)