chore: update script
Rust / build (macos-latest, stable) (push) Canceled after 0s
Rust / build (ubuntu-latest, stable) (push) Canceled after 0s
Rust / build (windows-latest, stable) (push) Canceled after 0s
Build and Release / Build macos-x64 (push) Canceled after 0s
Build and Release / Build macos-arm64 (push) Canceled after 0s
Build and Release / Build linux-arm64 (push) Canceled after 0s
Build and Release / Build linux-x64 (push) Canceled after 0s
Build and Release / Build windows-arm64 (push) Canceled after 0s
Build and Release / Build windows-x64 (push) Canceled after 0s
Build and Release / Create Release (push) Canceled after 0s
Rust / build (macos-latest, stable) (push) Canceled after 0s
Rust / build (ubuntu-latest, stable) (push) Canceled after 0s
Rust / build (windows-latest, stable) (push) Canceled after 0s
Build and Release / Build macos-x64 (push) Canceled after 0s
Build and Release / Build macos-arm64 (push) Canceled after 0s
Build and Release / Build linux-arm64 (push) Canceled after 0s
Build and Release / Build linux-x64 (push) Canceled after 0s
Build and Release / Build windows-arm64 (push) Canceled after 0s
Build and Release / Build windows-x64 (push) Canceled after 0s
Build and Release / Create Release (push) Canceled after 0s
This commit is contained in:
@@ -159,7 +159,7 @@ jobs:
|
|||||||
id: create_release
|
id: create_release
|
||||||
uses: akkuman/gitea-release-action@v1
|
uses: akkuman/gitea-release-action@v1
|
||||||
with:
|
with:
|
||||||
server_url: "https://git.reya.su/"
|
server_url: "https://git.reya.info/"
|
||||||
repository: "reya/signed"
|
repository: "reya/signed"
|
||||||
token: ${{ secrets.GITEA_TOKEN }}
|
token: ${{ secrets.GITEA_TOKEN }}
|
||||||
draft: true
|
draft: true
|
||||||
|
|||||||
+15
-3
@@ -54,9 +54,17 @@ echo "Updating versions..."
|
|||||||
update_version "$WORKSPACE_CARGO"
|
update_version "$WORKSPACE_CARGO"
|
||||||
update_version "$CRATE_CARGO"
|
update_version "$CRATE_CARGO"
|
||||||
|
|
||||||
|
COMMIT_MSG="chore: release version $NEW_VERSION"
|
||||||
|
|
||||||
|
# When the requested version is already set there is nothing to bump or commit,
|
||||||
|
# so the current commit is tagged as-is.
|
||||||
|
if git diff --quiet -- "$WORKSPACE_CARGO" "$CRATE_CARGO"; then
|
||||||
|
echo "Version is already $NEW_VERSION, tagging the current commit"
|
||||||
|
else
|
||||||
# Check git status before committing
|
# Check git status before committing
|
||||||
echo "Checking git status..."
|
echo "Checking git status..."
|
||||||
if git status --porcelain | grep -q .; then
|
# The version files are always modified at this point, so only ask about other changes.
|
||||||
|
if [ -n "$(git status --porcelain -- . ":(exclude,top)$WORKSPACE_CARGO" ":(exclude,top)$CRATE_CARGO")" ]; then
|
||||||
echo "Current uncommitted changes:"
|
echo "Current uncommitted changes:"
|
||||||
git status --short
|
git status --short
|
||||||
|
|
||||||
@@ -93,8 +101,6 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Commit the changes
|
# Commit the changes
|
||||||
COMMIT_MSG="chore: release version $NEW_VERSION"
|
|
||||||
|
|
||||||
if git commit -m "$COMMIT_MSG"; then
|
if git commit -m "$COMMIT_MSG"; then
|
||||||
echo "✓ Committed version changes"
|
echo "✓ Committed version changes"
|
||||||
else
|
else
|
||||||
@@ -110,10 +116,16 @@ else
|
|||||||
echo "Error: Failed to push version changes to origin"
|
echo "Error: Failed to push version changes to origin"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
# Create git tag
|
# Create git tag
|
||||||
TAG_NAME="v$NEW_VERSION"
|
TAG_NAME="v$NEW_VERSION"
|
||||||
|
|
||||||
|
if git rev-parse -q --verify "refs/tags/$TAG_NAME" >/dev/null; then
|
||||||
|
echo "Error: tag $TAG_NAME already exists"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
if git tag -a "$TAG_NAME" -m "$COMMIT_MSG"; then
|
if git tag -a "$TAG_NAME" -m "$COMMIT_MSG"; then
|
||||||
echo "✓ Created git tag: $TAG_NAME"
|
echo "✓ Created git tag: $TAG_NAME"
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user