mirror of
https://github.com/dilantha/link-formatter.git
synced 2026-07-22 11:30:23 +00:00
18 lines
408 B
Bash
Executable file
18 lines
408 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# Get version from manifest.json
|
|
version=$(grep '"version":' manifest.json | cut -d'"' -f4)
|
|
|
|
if [ -z "$version" ]; then
|
|
echo "Error: Could not get version from manifest.json"
|
|
exit 1
|
|
fi
|
|
|
|
# Git operations
|
|
git add .
|
|
git commit -m "Release version $version"
|
|
git tag "$version"
|
|
git push origin main
|
|
git push origin "$version"
|
|
|
|
echo "Successfully released version $version and pushed changes"
|