Skip to content

Commit 2d30706

Browse files
kasperjungeclaude
andcommitted
Fix publish workflow to checkout tag in all jobs
- Add ref: ${{ github.ref_name }} to quality and build checkouts - Update tag validation regex to allow alpha/beta versions (e.g., v0.7.1b1) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent f506c38 commit 2d30706

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/publish.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ jobs:
2222
runs-on: ubuntu-latest
2323
steps:
2424
- uses: actions/checkout@v4
25+
with:
26+
ref: ${{ github.ref_name }}
2527

2628
- name: Install uv
2729
uses: astral-sh/setup-uv@v5
@@ -47,6 +49,8 @@ jobs:
4749
runs-on: ubuntu-latest
4850
steps:
4951
- uses: actions/checkout@v4
52+
with:
53+
ref: ${{ github.ref_name }}
5054

5155
- name: Install uv
5256
uses: astral-sh/setup-uv@v5
@@ -105,9 +109,9 @@ jobs:
105109

106110
- name: Validate tag format
107111
run: |
108-
if [[ ! "$TAG_NAME" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
112+
if [[ ! "$TAG_NAME" =~ ^v[0-9]+\.[0-9]+\.[0-9]+([ab][0-9]+)?$ ]]; then
109113
echo "Error: Invalid tag format '$TAG_NAME'"
110-
echo "Expected format: vX.Y.Z (e.g., v0.6.5)"
114+
echo "Expected format: vX.Y.Z or vX.Y.Za1/vX.Y.Zb1 (e.g., v0.6.5, v0.7.1b1)"
111115
exit 1
112116
fi
113117

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "agr"
7-
version = "0.7.0"
7+
version = "0.7.1b1"
88
description = "Agent Resources - A package and project manager for AI agents."
99
readme = "README.md"
1010
requires-python = ">=3.10"

0 commit comments

Comments
 (0)