From ab33f423c87b837433e582c7faf23e059f96319b Mon Sep 17 00:00:00 2001 From: Manuel Weiser Date: Sun, 16 Feb 2025 10:34:56 +0100 Subject: [PATCH] chore: remove deprecated release script --- release.sh | 60 ------------------------------------------------------ 1 file changed, 60 deletions(-) delete mode 100644 release.sh diff --git a/release.sh b/release.sh deleted file mode 100644 index e611a72..0000000 --- a/release.sh +++ /dev/null @@ -1,60 +0,0 @@ -#!/bin/bash - -# Get version from platformio.ini -VERSION=$(grep '^version = ' platformio.ini | sed 's/version = "\(.*\)"/\1/') - -if [ -z "$VERSION" ]; then - echo "Error: Could not find version in platformio.ini" - exit 1 -fi - -echo "Creating release for version $VERSION" - -# Check if working directory is clean -if [ -n "$(git status --porcelain)" ]; then - echo "Error: Working directory is not clean. Please commit all changes first." - exit 1 -fi - -# Push to origin (local git repo) -echo "Pushing to origin..." -git push origin -if [ $? -ne 0 ]; then - echo "Error: Failed to push to origin" - exit 1 -fi - -git tag "v$VERSION" -if [ $? -ne 0 ]; then - echo "Error: Failed to create tag v$VERSION" - exit 1 -fi - -git push origin "v$VERSION" -if [ $? -ne 0 ]; then - echo "Error: Failed to push tag v$VERSION to origin" - git tag -d "v$VERSION" - exit 1 -fi - -# Ask for upstream push -read -p "Do you want to push to GitHub (upstream)? (y/n) " -n 1 -r -echo -if [[ $REPLY =~ ^[Yy]$ ]]; then - echo "Pushing to upstream (GitHub)..." - git push upstream - if [ $? -ne 0 ]; then - echo "Error: Failed to push to upstream" - exit 1 - fi - - git push upstream "v$VERSION" - if [ $? -ne 0 ]; then - echo "Error: Failed to push tag v$VERSION to upstream" - exit 1 - fi - echo "Successfully pushed to GitHub" -fi - -echo "Successfully created and pushed tag v$VERSION" -echo "All operations completed" \ No newline at end of file