From a39be808313dedae0afc26abe4b94c2a8858072c Mon Sep 17 00:00:00 2001 From: letieu Date: Wed, 10 Dec 2025 06:31:15 +0700 Subject: [PATCH] =?UTF-8?q?Bump=20version:=20v0.0.3=20=E2=86=92=20v0.0.4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 8 ++++---- index.css | 2 +- installation.html | 10 +++++----- release.sh | 38 ++++++++++++++++++++++++++++++++++++++ showcase.html | 2 +- 5 files changed, 49 insertions(+), 11 deletions(-) create mode 100755 release.sh diff --git a/README.md b/README.md index f65accc..002b915 100644 --- a/README.md +++ b/README.md @@ -14,11 +14,11 @@ Add these links to your HTML file: ```html - + - + ``` Optional: Add Tailwind CSS for layout utilities (flex, grid, spacing) @@ -48,7 +48,7 @@ To use any component, simply: My Terminal App - + @@ -58,7 +58,7 @@ To use any component, simply: - + ``` diff --git a/index.css b/index.css index ca5ec03..e47f33a 100644 --- a/index.css +++ b/index.css @@ -1,5 +1,5 @@ /* ========================================================================== - terminal.css - Terminal CSS Component Library v0.0.3 + terminal.css - Terminal CSS Component Library v0.0.4 Bulma-style naming conventions ========================================================================== */ diff --git a/installation.html b/installation.html index 00264b6..7c2fb42 100644 --- a/installation.html +++ b/installation.html @@ -91,7 +91,7 @@
<link rel="stylesheet" - href="https://cdn.jsdelivr.net/gh/letieu/terminal.css@v0.0.3/index.css" + href="https://cdn.jsdelivr.net/gh/letieu/terminal.css@v0.0.4/index.css" />
@@ -103,7 +103,7 @@
<link rel="stylesheet" - href="https://cdn.jsdelivr.net/gh/letieu/terminal.css@v0.0.3/themes/gruvbox-dark.css" + href="https://cdn.jsdelivr.net/gh/letieu/terminal.css@v0.0.4/themes/gruvbox-dark.css" />
@@ -119,7 +119,7 @@
<script - src="https://cdn.jsdelivr.net/gh/letieu/terminal.css@v0.0.3/index.js"></script>
@@ -222,7 +222,7 @@
<link rel="stylesheet" - href="https://cdn.jsdelivr.net/gh/letieu/terminal.css@v0.0.3/index.css">
@@ -268,7 +268,7 @@
<script - src="https://cdn.jsdelivr.net/gh/letieu/terminal.css@v0.0.3/index.js"></script>
diff --git a/release.sh b/release.sh new file mode 100755 index 0000000..804c309 --- /dev/null +++ b/release.sh @@ -0,0 +1,38 @@ +#!/bin/bash + +set -e + +# 1. Get latest git tag +oldTag=$(git describe --tags "$(git rev-list --tags --max-count=1)") + +echo "Latest tag: $oldTag" +read -p "Enter new tag: " newTag + +if [ -z "$newTag" ]; then + echo "New tag cannot be empty!" + exit 1 +fi + +echo "Updating $oldTag -> $newTag ..." + +# 2. Escape dots for sed +oldTagEscaped=$(printf '%s\n' "$oldTag" | sed 's/\./\\./g') +newTagEscaped=$(printf '%s\n' "$newTag" | sed 's/\./\\./g') + +# 3. Replace in files +grep -rl "$oldTag" . | xargs sed -i "s/$oldTagEscaped/$newTagEscaped/g" + +echo "Files updated." + +# 4. Git commit changes +git add . +git commit -m "Bump version: $oldTag → $newTag" + +# 5. Create new tag +git tag "$newTag" + +# 6. Push commit + tag +git push +git push origin "$newTag" + +echo "Version bump complete: $oldTag → $newTag" diff --git a/showcase.html b/showcase.html index 1101d9a..f25d591 100644 --- a/showcase.html +++ b/showcase.html @@ -107,7 +107,7 @@

Tags & Badges

- v0.0.3 + v0.0.4 Active Error Beta