Skip to content

Commit

Permalink
add release scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
drio committed Mar 3, 2023
1 parent 553a3ef commit 7d88d0a
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/bin/bash

set -e

current=$(cat version.go | tail -1 | head -1 | awk -F= '{print $2}')
echo "Current version is:"
echo $current
echo -ne "Enter new version: "
read new_version


(
cat <<EOF
package caddy_saml_sso
const version = "$new_version"
EOF
) > version.go

git add version.go
git commit -m 'bump version'
git tag "v$new_version"
git push origin
git push origin v$new_version

rm -f caddy.*
make release

gh release create v$new_version
gh release upload caddy.a*

0 comments on commit 7d88d0a

Please sign in to comment.