Skip to content

Commit 6fd175e

Browse files
committed
feat: project name fixed & publish on push added
1 parent 5cf7ad3 commit 6fd175e

2 files changed

Lines changed: 11 additions & 3 deletions

File tree

.github/workflows/publish.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ name: Publish Python Package
33
on:
44
release:
55
types: [published]
6+
push:
7+
branches: [master]
68

79
jobs:
810
build-and-publish:
@@ -29,9 +31,15 @@ jobs:
2931
3032
- name: Build Package
3133
run: |
32-
echo "GitHub Release Tag: ${{ github.event.release.tag_name }}"
34+
TAG_NAME="${{ github.event.release.tag_name }}"
35+
if [ -z "$TAG_NAME" ]; then
36+
echo "No release tag found. Generating dev version."
37+
VERSION="0.0.1.dev${{ github.run_number }}"
38+
else
39+
echo "GitHub Release Tag: $TAG_NAME"
40+
VERSION=$(echo "$TAG_NAME" | sed 's/^v//')
41+
fi
3342
34-
VERSION=$(echo "${{ github.event.release.tag_name }}" | sed 's/^v//')
3543
echo "Building Version: $VERSION"
3644
3745
export SETUPTOOLS_SCM_PRETEND_VERSION=$VERSION

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[project]
2-
name = "nexus"
2+
name = "agent-nexus-cli"
33
version = "0.1.0"
44
description = "Nexus Is A CLI-Based AI Coding Agent That Transforms Natural Language Into Efficient, Production-Ready Code!"
55
readme = "readme.md"

0 commit comments

Comments
 (0)