Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add debugging #15

Merged
merged 1 commit into from
Jan 22, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 15 additions & 4 deletions Runmefile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,11 @@ coverage.update_badge() {
# @arg tag! The tag against which the release was built
release.verify() {
log "Verifying release '$argc_tag'"
if [[ ! $argc_tag ]]; then
err "Received empty tag, can't continue!"
exit 1
fi

if ! ls dist/ | grep -q "$argc_tag"; then
err "There are no files in dist/ that correspond to the tag '$argc_tag'"
exit 1
Expand Down Expand Up @@ -340,22 +345,28 @@ bump_version() {
catch git tag -a -m "Release $new_tag" "$new_tag"
catch git push origin "$new_tag"

log "Pushed a new tag: '$new_tag'"
echo "$new_tag"
}

# @cmd Make a new release
# @arg mode! A semver release mode: 'major', 'minor' or 'patch'
release() {
tag=$(bump_version "$argc_mode")
if [[ ! $tag ]]; then
log "Create a new release ($argc_mode)"

tagname=$(bump_version "$argc_mode")
if [[ ! $tagname ]]; then
err "Couldn't bump version, somehow :("
exit 1
fi

build

publish.pypi "$tag"
publish.github "$tag"
log "Running publish.pypi '$tagname'"
publish.pypi "$tagname"

log "Running publish.github '$tagname'"
publish.github "$tagname"
}

# @cmd Make new release
Expand Down