Skip to content

Commit cd52943

Browse files
committed
feat: use fugit release script
1 parent 59a40b3 commit cd52943

2 files changed

Lines changed: 23 additions & 1 deletion

File tree

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,6 @@ jobs:
5454
if: github.ref_type == 'tag'
5555
with:
5656
token: ${{ secrets.GITHUB_TOKEN }}
57-
name: "v${{ steps.release.outputs.release_version }}"
57+
name: "${{ steps.release.outputs.release_version }}"
5858
prerelease: ${{ steps.release.outputs.is_prerelease }}
5959
body: ${{ steps.git-cliff.outputs.content }}

release.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/bin/bash
2+
3+
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
4+
export SCRIPT_DIR
5+
6+
function release_custom_hook {
7+
# shellcheck disable=SC2154
8+
echo "No custom hook for: \"${version_tag#v}\""
9+
}
10+
11+
export -f release_custom_hook
12+
export START_COMMIT=755a25a85fbe50d0f359378d297b3e8cba801686
13+
export RELEASE_CUSTOM_HOOK=release_custom_hook
14+
export REPO_NAME=toggle-corp/banjo-utils
15+
export DEFAULT_BRANCH=main
16+
export VERSION_TAG_PREFIX_MODE=forbid
17+
18+
export GIT_CLIFF__REMOTE__GITHUB__OWNER=toggle-corp
19+
export GIT_CLIFF__REMOTE__GITHUB__REPO=banjo-utils
20+
21+
# Forward the argument - used for pre-fill version
22+
"$SCRIPT_DIR/fugit/scripts/release.sh" "${@:-}"

0 commit comments

Comments
 (0)