|
4 | 4 |
|
5 | 5 | set -eux
|
6 | 6 |
|
7 |
| -make |
8 |
| - |
9 |
| -# NPM package. |
10 |
| -# Updates package.json version, which other systems read if possible. |
11 |
| -new_version="$(./push-mirrors-bump-package-json-version)" |
12 |
| -npm publish |
13 |
| -git add package.json |
| 7 | +## Git mirrors. |
| 8 | +#git push [email protected]:cirosantilli/china-dictatorship.git |
| 9 | +#git push [email protected]:cirosantilli/china-dictatorship.git |
14 | 10 |
|
15 |
| -# Python package. |
16 |
| -./push-mirrors-bump-setup-py-version |
17 |
| -# Initial one time setup. |
18 |
| -#python3 -m pip install --user setuptools wheel twine |
19 |
| -cp README.adoc README.html china_dictatorship |
20 |
| -python setup.py sdist bdist_wheel |
21 |
| -# Asks for username and password every time, unless you setup ~/.pypirc. |
22 |
| -twine upload dist/* |
23 |
| -rm -rf build dist *.egg-info |
24 |
| -git add setup.py |
| 11 | +make |
25 | 12 |
|
26 |
| -# Bump package versions |
27 |
| -git tag -m "$new_version" "$new_version" |
28 |
| -git commit -m 'bump package version' |
29 |
| -git push --follow-tags |
| 13 | +# GitHub pages. |
| 14 | +gh_pages_dir=out/gh-pages |
| 15 | +# One time initial setup. |
| 16 | +# git checkout --orphan gh-pages |
| 17 | +# and copy over https://github.com/cirosantilli/jekyll-min |
| 18 | +if [ ! -d "$gh_pages_dir" ]; then |
| 19 | + mkdir -p "$gh_pages_dir" |
| 20 | + git clone . "$gh_pages_dir" |
| 21 | +fi |
| 22 | +cp README.html "$gh_pages_dir" |
| 23 | +git -C "$gh_pages_dir" add "README.html" |
| 24 | +git -C "$gh_pages_dir" commit -m "$(git log -1 --format="%H")" |
| 25 | +git -C "$gh_pages_dir" push |
30 | 26 |
|
31 |
| -git push [email protected]:cirosantilli/china-dictatorship.git |
32 |
| -git push [email protected]:cirosantilli/china-dictatorship.git |
| 27 | +## NPM package. |
| 28 | +## Updates package.json version, which other systems read if possible. |
| 29 | +#new_version="$(./push-mirrors-bump-package-json-version)" |
| 30 | +#npm publish |
| 31 | +#git add package.json |
| 32 | +# |
| 33 | +## Python package. |
| 34 | +#./push-mirrors-bump-setup-py-version |
| 35 | +## Initial one time setup. |
| 36 | +##python3 -m pip install --user setuptools wheel twine |
| 37 | +#cp README.adoc README.html china_dictatorship |
| 38 | +#python setup.py sdist bdist_wheel |
| 39 | +## Asks for username and password every time, unless you setup ~/.pypirc. |
| 40 | +#twine upload dist/* |
| 41 | +#rm -rf build dist *.egg-info |
| 42 | +#git add setup.py |
| 43 | +# |
| 44 | +## Bump package versions |
| 45 | +#git tag -m "$new_version" "$new_version" |
| 46 | +#git commit -m 'bump package version' |
| 47 | +#git push --follow-tags |
0 commit comments