Skip to content

Commit ef11c1b

Browse files
committed
Remove release scripts from Makefile
1 parent c6807f4 commit ef11c1b

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

Makefile

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -24,24 +24,3 @@ mypy:
2424
docs:
2525
cd docs/docs && git reset --hard
2626
python docs/make.py
27-
28-
.PHONY: release
29-
release: docs
30-
if [ ! -z "`git diff`" ]; then echo "Git diff is not empty. Commit changes before releasing" && exit 1; fi
31-
python -m pip install --upgrade build
32-
python -m build -w
33-
34-
.PHONY: publish
35-
publish: release
36-
$(eval version=$(shell grep '^__version__' screen_brightness_control/_version.py | cut -d"'" -f2))
37-
@echo Git tag and push tags
38-
git tag v$(version)
39-
git push --tags
40-
@echo Upload to PyPI
41-
python -m pip install --upgrade twine
42-
twine upload dist/*$(version).tar.gz dist/*$(version)*.whl
43-
@echo Stage updated documentation with git
44-
cd docs/docs && find . -maxdepth 2 -type f -not -path '*/[@.]*' | while read file; do git add "$$file"; done
45-
cd docs/docs && git add docs/$(version)/*
46-
@echo Commit and push new docs
47-
cd docs/docs && git commit -m "Bump v$(version)" && git push origin gh-pages

0 commit comments

Comments
 (0)