Skip to content

Commit 827fd74

Browse files
committed
Fix release action
1 parent f361bff commit 827fd74

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

.github/actions/release-package/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ runs:
3838
- name: Compute PyPI Url
3939
id: pypi-url
4040
shell: bash
41-
run:
41+
run: |
4242
if [ "${{ inputs.pypi-use-test-release }}" == "true" ]; then
4343
echo "::set-output name=pypi-url::https://test.pypi.org/legacy/"
4444
echo "::set-output name=password::${{ inputs.pypi-test-token }}"

.github/workflows/release-ragstack.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ jobs:
1212
permissions:
1313
contents: write
1414
steps:
15+
- name: Check out the repo
16+
uses: actions/checkout@v3
1517
- name: Release
1618
uses: ./.github/actions/release-package
1719
with:

scripts/release.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,17 @@ if [ -n "$(git status --porcelain)" ]; then
1010
echo "Working directory not clean"
1111
exit 1
1212
fi
13+
tag="ragstack-ai-$version"
1314

1415
git checkout main
1516
git pull
1617
echo ":: Bumping version to $version"
1718
poetry version $version
1819
git commit -am "Release $version"
19-
git tag "ragstack-ai-$version"
20+
git tag $tag
2021
echo ":: Bumping version to ${version}.post"
2122
poetry version "${version}.post"
2223
git commit -am "Bump version to ${version}.post"
2324
git push origin main
24-
git push origin --tags
25+
git push origin $tag
2526
echo "done."

0 commit comments

Comments
 (0)