File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,8 @@ update_docs: export COMMIT=$(shell git rev-parse HEAD)
51
51
update_docs :
52
52
# Sanity check; we'll build docs in a clone of a git repo
53
53
test -d ../git
54
+ # Sanity check; docs == origin/docs
55
+ test -z " $( git rev-parse docs origin/docs | uniq -u) "
54
56
# Avoid spurious errors by forcing index to be well formatted, if empty
55
57
git read-tree 4b825dc642cb6eb9a060e54bf8d69288fbee4904 # empty tree
56
58
# Symlink git-filter-repo.txt documentation into git and build it
@@ -89,6 +91,8 @@ github_release: update_docs
89
91
test -n " $( GITHUB_COM_TOKEN) "
90
92
test -n " $( TAGNAME) "
91
93
test -n " $$ COMMIT"
94
+ # Make sure 'jq' is installed
95
+ type -p jq
92
96
# Tag the release, push it to GitHub
93
97
git tag -a -m " filter-repo $( TAGNAME) " $(TAGNAME ) $$ COMMIT
94
98
git push origin $(TAGNAME )
@@ -124,6 +128,7 @@ pypi_release: # Has an implicit dependency on github_release because...
124
128
cd release && venv/bin/pip3 install --upgrade setuptools pip
125
129
cd release && venv/bin/pip3 install twine wheel
126
130
cd release && venv/bin/python3 setup.py sdist bdist_wheel
131
+ # Note: hope you remember password for pypi, but username is 'newren'
127
132
cd release && venv/bin/twine upload dist/*
128
133
# Remove temporary file(s)
129
134
cd release && rm -f README.md git-filter-repo git_filter_repo.py
You can’t perform that action at this time.
0 commit comments