Skip to content

Commit

Permalink
release script, change release name
Browse files Browse the repository at this point in the history
  • Loading branch information
jcosentino11 committed Jun 14, 2024
1 parent ac34a9b commit bf01ecc
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
release_name: Resume ${{ github.ref }}
draft: false
prerelease: false
- name: Upload Release Asset
Expand Down
18 changes: 18 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/usr/bin/env bash

STARTING_TAG=v1

git fetch --tags
LATEST_TAG=$(git describe --tags $(git rev-list --tags --max-count=1) 2>/dev/null)
if [ -z "${LATEST_TAG}" ]; then
NEXT_TAG="${STARTING_TAG}"
else
VERSION=${LATEST_TAG#v}
NEXT_VERSION=$((VERSION + 1))
NEXT_TAG="v${NEXT_VERSION}"
fi

echo "Creating tag: ${NEXT_TAG}"

git tag ${NEXT_TAG}
git push origin ${NEXT_TAG}

0 comments on commit bf01ecc

Please sign in to comment.