Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| cb8c550ed1 | |||
| 5fc7019dcc | |||
| 8c9248fd94 |
2
.github/workflows/hero_build.yml
vendored
2
.github/workflows/hero_build.yml
vendored
@@ -5,9 +5,7 @@ permissions:
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: ["main","development"]
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
branches: ["main","development"]
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ fn do() ! {
|
|||||||
mut cmd := Command{
|
mut cmd := Command{
|
||||||
name: 'hero'
|
name: 'hero'
|
||||||
description: 'Your HERO toolset.'
|
description: 'Your HERO toolset.'
|
||||||
version: '1.0.3'
|
version: '1.0.5'
|
||||||
}
|
}
|
||||||
|
|
||||||
// herocmds.cmd_run_add_flags(mut cmd)
|
// herocmds.cmd_run_add_flags(mut cmd)
|
||||||
@@ -94,4 +94,4 @@ fn main() {
|
|||||||
|
|
||||||
fn pre_func(cmd Command) ! {
|
fn pre_func(cmd Command) ! {
|
||||||
herocmds.plbook_run(cmd)!
|
herocmds.plbook_run(cmd)!
|
||||||
}
|
}
|
||||||
@@ -3,6 +3,6 @@
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
cd ~/Users/despiegk~/code/github/freeflowuniverse/herolib
|
cd ~/Users/despiegk~/code/github/freeflowuniverse/herolib
|
||||||
git tag -a v1.0.3 -m "all CI is now working"
|
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.3
|
git add . -A ; git commit -m ... ; git pull ; git push origin v1.0.4
|
||||||
```
|
```
|
||||||
35
release.sh
Executable file
35
release.sh
Executable 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!"
|
||||||
Reference in New Issue
Block a user