mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-05-26 20:49:55 +00:00
ci: Fix unstable builds for repo packages
This commit is contained in:
@@ -96,7 +96,7 @@ jobs:
|
|||||||
if [[ ${{ forge.ref_name }} =~ ^v+[0-9]\.+[0-9]\.+[0-9]$ ]]; then
|
if [[ ${{ forge.ref_name }} =~ ^v+[0-9]\.+[0-9]\.+[0-9]$ ]]; then
|
||||||
# Use the "stable" component for tagged semver releases
|
# Use the "stable" component for tagged semver releases
|
||||||
COMPONENT="stable"
|
COMPONENT="stable"
|
||||||
elif [[ ${{ forge.ref }} =~ ^refs/tags/^v+[0-9]\.+[0-9]\.+[0-9] ]]; then
|
elif [[ ${{ forge.ref_name }} =~ ^v+[0-9]\.+[0-9]\.+[0-9] ]]; then
|
||||||
# Use the "unstable" component for tagged semver pre-releases
|
# Use the "unstable" component for tagged semver pre-releases
|
||||||
COMPONENT="unstable"
|
COMPONENT="unstable"
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -105,7 +105,7 @@ jobs:
|
|||||||
RELEASE_SUFFIX=""
|
RELEASE_SUFFIX=""
|
||||||
TAG_NAME="${{ github.ref_name }}"
|
TAG_NAME="${{ github.ref_name }}"
|
||||||
# Extract version from tag (remove v prefix if present)
|
# Extract version from tag (remove v prefix if present)
|
||||||
TAG_VERSION=$(echo "$TAG_NAME" | sed 's/^v//')
|
TAG_VERSION=$(echo "$TAG_NAME" | sed 's/^v//' | tr '-' '~')
|
||||||
|
|
||||||
# Create spec file with tag version
|
# Create spec file with tag version
|
||||||
sed -e "s/^Version:.*$/Version: $TAG_VERSION/" \
|
sed -e "s/^Version:.*$/Version: $TAG_VERSION/" \
|
||||||
@@ -270,9 +270,13 @@ jobs:
|
|||||||
|
|
||||||
# Determine the group based on ref type and branch
|
# Determine the group based on ref type and branch
|
||||||
if [[ "${{ github.ref }}" == "refs/tags/"* ]]; then
|
if [[ "${{ github.ref }}" == "refs/tags/"* ]]; then
|
||||||
GROUP="stable"
|
|
||||||
# For tags, extract the tag name for version info
|
# For tags, extract the tag name for version info
|
||||||
TAG_NAME="${{ github.ref_name }}"
|
TAG_NAME="${{ github.ref_name }}"
|
||||||
|
if [[ "$TAG_NAME" == *"-"* ]]; then
|
||||||
|
GROUP="unstable"
|
||||||
|
else
|
||||||
|
GROUP="stable"
|
||||||
|
fi
|
||||||
elif [ "${{ github.ref_name }}" = "main" ]; then
|
elif [ "${{ github.ref_name }}" = "main" ]; then
|
||||||
GROUP="dev"
|
GROUP="dev"
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user