Compare commits

...

3 Commits

Author SHA1 Message Date
cb8c550ed1 chore: bump version to 1.0.5 2025-02-07 12:38:49 +03:00
5fc7019dcc chore: bump version to 1.0.4 2025-02-07 12:30:56 +03:00
8c9248fd94 ... 2025-02-07 12:25:15 +03:00
4 changed files with 39 additions and 6 deletions

View File

@@ -5,9 +5,7 @@ permissions:
on:
push:
branches: ["main","development"]
workflow_dispatch:
branches: ["main","development"]
jobs:
build:

View File

@@ -31,7 +31,7 @@ fn do() ! {
mut cmd := Command{
name: 'hero'
description: 'Your HERO toolset.'
version: '1.0.3'
version: '1.0.5'
}
// herocmds.cmd_run_add_flags(mut cmd)
@@ -94,4 +94,4 @@ fn main() {
fn pre_func(cmd Command) ! {
herocmds.plbook_run(cmd)!
}
}

View File

@@ -3,6 +3,6 @@
```bash
cd ~/Users/despiegk~/code/github/freeflowuniverse/herolib
git tag -a v1.0.3 -m "all CI is now working"
git add . -A ; git commit -m ... ; git pull ; git push origin v1.0.3
git tag -a v1.0.4 -m "all CI is now working"
git add . -A ; git commit -m ... ; git pull ; git push origin v1.0.4
```

35
release.sh Executable file
View File

@@ -0,0 +1,35 @@
#!/bin/bash
set -e
# Function to get the latest release tag
get_latest_release() {
curl --silent "https://api.github.com/repos/freeflowuniverse/herolib/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/'
}
# Show current version
echo "Current latest release: $(get_latest_release)"
# Ask for new version
read -p "Enter new version (e.g., 1.0.4): " new_version
# Validate version format
if [[ ! $new_version =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "Error: Version must be in format X.Y.Z (e.g., 1.0.4)"
exit 1
fi
# Update version in hero.v
sed -i.bak "s/version: '[0-9]\+\.[0-9]\+\.[0-9]\+'/version: '$new_version'/" cli/hero.v
rm -f cli/hero.v.bak
# Commit changes
git add . -A
git commit -m "chore: bump version to $new_version"
git pull
git push
# Create and push tag
git tag -a "v$new_version" -m "Release version $new_version"
git push origin "v$new_version"
echo "Release v$new_version created and pushed!"