Skip to content

Commit

Permalink
Update and rename release.ps1 to release.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Mause authored Jun 23, 2022
1 parent dbcc237 commit 3651e49
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
9 changes: 0 additions & 9 deletions release.ps1

This file was deleted.

15 changes: 15 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash
# More safety, by turning some bugs into errors.
# Without `errexit` you don’t need ! and can replace
# ${PIPESTATUS[0]} with a simple $?, but I prefer safety.
set -o errexit -o pipefail -o noclobber -o nounset

version=$1

poetry version $version
git commit pyproject.yaml -m "feat: $version"
git tag $version
git push --tags
git push
poetry publish --build
gh release create $version

0 comments on commit 3651e49

Please sign in to comment.