This commit is contained in:
Ciro Santilli
2020-03-22 00:00:01 +00:00
parent 098d7ba287
commit 0b362a83fb
2 changed files with 39 additions and 23 deletions

1
.gitignore vendored
View File

@@ -1,4 +1,5 @@
/README.html /README.html
/out
# NPM README # NPM README
/README /README

View File

@@ -4,29 +4,44 @@
set -eux set -eux
## Git mirrors.
#git push git@gitlab.com:cirosantilli/china-dictatorship.git
#git push git@bitbucket.org:cirosantilli/china-dictatorship.git
make make
# NPM package. # GitHub pages.
# Updates package.json version, which other systems read if possible. gh_pages_dir=out/gh-pages
new_version="$(./push-mirrors-bump-package-json-version)" # One time initial setup.
npm publish # git checkout --orphan gh-pages
git add package.json # and copy over https://github.com/cirosantilli/jekyll-min
if [ ! -d "$gh_pages_dir" ]; then
mkdir -p "$gh_pages_dir"
git clone . "$gh_pages_dir"
fi
cp README.html "$gh_pages_dir"
git -C "$gh_pages_dir" add "README.html"
git -C "$gh_pages_dir" commit -m "$(git log -1 --format="%H")"
git -C "$gh_pages_dir" push
# Python package. ## NPM package.
./push-mirrors-bump-setup-py-version ## Updates package.json version, which other systems read if possible.
# Initial one time setup. #new_version="$(./push-mirrors-bump-package-json-version)"
#python3 -m pip install --user setuptools wheel twine #npm publish
cp README.adoc README.html china_dictatorship #git add package.json
python setup.py sdist bdist_wheel #
# Asks for username and password every time, unless you setup ~/.pypirc. ## Python package.
twine upload dist/* #./push-mirrors-bump-setup-py-version
rm -rf build dist *.egg-info ## Initial one time setup.
git add setup.py ##python3 -m pip install --user setuptools wheel twine
#cp README.adoc README.html china_dictatorship
# Bump package versions #python setup.py sdist bdist_wheel
git tag -m "$new_version" "$new_version" ## Asks for username and password every time, unless you setup ~/.pypirc.
git commit -m 'bump package version' #twine upload dist/*
git push --follow-tags #rm -rf build dist *.egg-info
#git add setup.py
git push git@gitlab.com:cirosantilli/china-dictatorship.git #
git push git@bitbucket.org:cirosantilli/china-dictatorship.git ## Bump package versions
#git tag -m "$new_version" "$new_version"
#git commit -m 'bump package version'
#git push --follow-tags