Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
china-dictatorship
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ciro DURAN SANTILLI
china-dictatorship
Commits
c0db1fce
Commit
c0db1fce
authored
4 years ago
by
Ciro Santilli
Browse files
Options
Downloads
Patches
Plain Diff
push-mirrors saner?
parent
4c08e7b6
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
push-mirrors
+7
-9
7 additions, 9 deletions
push-mirrors
with
7 additions
and
9 deletions
push-mirrors
+
7
−
9
View file @
c0db1fce
...
...
@@ -4,19 +4,23 @@
set
-eux
# Update repo.
new_version
=
"
$(
./push-mirrors-bump-package-json-version
)
"
./push-mirrors-bump-setup-py-version
git add package.json
git add setup.py
git commit
-m
'bump package version'
git tag
-m
"
$new_version
"
"
$new_version
"
./push-gh-pages
# NPM package.
# Updates package.json version, which other systems read if possible.
new_version
=
"
$(
./push-mirrors-bump-package-json-version
)
"
npm publish
git add package.json
# Python package.
# Initial setup:
#sudo apt install python3-testresources
#python3 -m pip install --user --upgrade setuptools wheel
./push-mirrors-bump-setup-py-version
# Initial one time setup.
#python3 -m pip install --user setuptools wheel twine
cp
README.adoc README.html china_dictatorship
...
...
@@ -26,14 +30,8 @@ python setup.py sdist bdist_wheel
# https://stackoverflow.com/questions/57935191/twine-is-asking-for-my-password-each-time-how-to-use-the-pypirc
twine upload dist/
*
rm
-rf
build dist
*
.egg-info
git add setup.py
# Bump package versions
git commit
-m
'bump package version'
git tag
-m
"
$new_version
"
"
$new_version
"
# Push to git mirrors.
git push
--follow-tags
git push git@gitlab.com:cirosantilli/china-dictatorship.git
git push git@bitbucket.org:cirosantilli/china-dictatorship.git
# Nah.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment