Skip to content

Commit bf450a9

Browse files
anentropicclaude
andcommitted
ci: support pre-release tags in build workflow, bump to 1.0.0-alpha.1
- Add '*.*.*-*' tag pattern to trigger on pre-release tags - Make prerelease flag dynamic based on tag format - Skip Docker build for pre-releases - Set version to 1.0.0-alpha.1 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 822c178 commit bf450a9

2 files changed

Lines changed: 13 additions & 4 deletions

File tree

.github/workflows/build-release.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
push:
77
tags:
88
- '*.*.*'
9+
- '*.*.*-*'
910
workflow_dispatch:
1011
inputs:
1112
version:
@@ -20,7 +21,14 @@ jobs:
2021
version: ${{ steps.tag-name.outputs.version }}
2122
steps:
2223
- id: tag-name
23-
run: echo "version=${{ github.ref_name || github.event.inputs.version }}" >> $GITHUB_OUTPUT
24+
run: |
25+
VERSION="${{ github.ref_name || github.event.inputs.version }}"
26+
echo "version=$VERSION" >> $GITHUB_OUTPUT
27+
if [[ "$VERSION" == *-* ]]; then
28+
echo "prerelease=true" >> $GITHUB_OUTPUT
29+
else
30+
echo "prerelease=false" >> $GITHUB_OUTPUT
31+
fi
2432
2533
# we'll upload files to it from each of the `build-native-image` matrix jobs
2634
# then publish ("un-draft") it at the end
@@ -31,7 +39,7 @@ jobs:
3139
tag_name: ${{ steps.tag-name.outputs.version }}
3240
name: ${{ steps.tag-name.outputs.version }}
3341
draft: true
34-
prerelease: false
42+
prerelease: ${{ steps.tag-name.outputs.prerelease }}
3543
env:
3644
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
3745

@@ -86,6 +94,7 @@ jobs:
8694

8795
build-docker-image:
8896
needs: draft-github-release
97+
if: ${{ !contains(needs.draft-github-release.outputs.version, '-') }}
8998
runs-on: ubuntu-latest
9099
steps:
91100
- uses: actions/checkout@v6

app/src/main/resources/version.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ version.buildmeta=
44
version.major=1
55
version.minor=0
66
version.patch=0
7-
version.prerelease=
8-
version.semver=1.0.0
7+
version.prerelease=alpha.1
8+
version.semver=1.0.0-alpha.1

0 commit comments

Comments
 (0)