Skip to content

Commit 454bb48

Browse files
oowlclaude
andcommitted
fix: dynamically resolve rockspec filename from git tag
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 44efbf7 commit 454bb48

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/publish.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,10 @@ jobs:
2323
env:
2424
LUAROCKS_API_KEY: ${{ secrets.LUAROCKS_API_KEY }}
2525
run: |
26-
luarocks upload lua-reqwest-0.1.5-1.rockspec --api-key="$LUAROCKS_API_KEY"
26+
TAG="${GITHUB_REF#refs/tags/}"
27+
ROCKSPEC="lua-reqwest-${TAG}-1.rockspec"
28+
if [ ! -f "$ROCKSPEC" ]; then
29+
echo "Error: $ROCKSPEC not found"
30+
exit 1
31+
fi
32+
luarocks upload "$ROCKSPEC" --api-key="$LUAROCKS_API_KEY"

0 commit comments

Comments
 (0)