Release v1.2.1 #1

Merged
efiordeliso merged 6 commits from dev into main 2024-03-08 13:45:28 -05:00
1 changed files with 16 additions and 4 deletions
Showing only changes of commit 7fa9815a37 - Show all commits

View File

@ -2,10 +2,14 @@
{
# https://devenv.sh/basics/
env.PROJECT_NAME = "go-twitch";
env = {
PROJECT_NAME = "go-twitch";
env.MOCK_DATA_PATH = "~/.config/twitch-cli/eventCache.db";
env.MOCK_API_PORT = "3000";
MOCK_DATA_PATH = "~/.config/twitch-cli/eventCache.db";
MOCK_API_PORT = "3000";
CHANGELOG_FILE = "CHANGELOG.md";
};
# https://devenv.sh/packages/
packages = with pkgs; [
@ -21,7 +25,15 @@
echo "Golang version: $(go version | cut -d ' ' -f 3)"
'';
changelog.exec = "git cliff -o CHANGELOG.md";
gen-changelog.exec = "git cliff -o $CHANGELOG_FILE";
release.exec = ''
version = "$(git cliff --bumped-version)"
gen-changelog
git add $CHANGELOG_FILE
git commit -m "chore: Update changelog and bump version"
git tag "$version" -m "Release $version"
git push --tags
'';
gen-mock-data.exec = "twitch-cli mock-api generate";
rm-mock-data.exec = "rm $MOCK_DATA_PATH";