File tree Expand file tree Collapse file tree 1 file changed +0
-21
lines changed
Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Original file line number Diff line number Diff line change 2424docs :
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
You can’t perform that action at this time.
0 commit comments