Skip to content

Commit 31c2c05

Browse files
Merge pull request #35 from epsilla-cloud/dev
update github workfolw for taging version
2 parents 5209517 + 084eaae commit 31c2c05

3 files changed

Lines changed: 18 additions & 5 deletions

File tree

.github/workflows/pypi-dev.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,17 @@ jobs:
2121

2222
steps:
2323
- uses: actions/checkout@v3
24+
- name: Get version defined
25+
id: version
26+
run: echo "::set-output name=version::$(cat ./pyepsilla/vectordb/version.py |awk -F'"' '{print $(NF-1)}')"
27+
2428
- name: Bump version and push tag
2529
id: tag_version
2630
uses: mathieudutour/github-tag-action@v6.1
2731
with:
2832
github_token: ${{ secrets.PAT_TOKEN }}
29-
tag_prefix: ""
33+
tag_prefix: ""
34+
custom_tag: ${{ steps.version.outputs.version }}
3035
dry_run: true
3136

3237
- name: Set up Python
@@ -36,7 +41,7 @@ jobs:
3641

3742
- name: Install dependencies
3843
run: |
39-
echo "new tag: " ${{ steps.tag_version.outputs.new_tag }} "," ${{ steps.tag_version.outputs.new_version }}
44+
echo "!!!new tag: ${{ steps.tag_version.outputs.new_tag }} ,${{ steps.tag_version.outputs.new_version }} "
4045
pip install -r requirements.txt
4146
python -m pip install --upgrade pip twine build
4247
python -m build --sdist --wheel --outdir dist/ .

.github/workflows/pypi-publish.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,29 @@ jobs:
2020

2121
steps:
2222
- uses: actions/checkout@v3
23+
- name: Get version defined
24+
id: version
25+
run: echo "::set-output name=version::$(cat ./pyepsilla/vectordb/version.py |awk -F'"' '{print $(NF-1)}')"
26+
2327
- name: Bump version and push tag
2428
id: tag_version
2529
uses: mathieudutour/github-tag-action@v6.1
2630
with:
2731
github_token: ${{ secrets.PAT_TOKEN }}
28-
tag_prefix: ""
29-
dry_run: false
32+
tag_prefix: ""
33+
custom_tag: ${{ steps.version.outputs.version }}
34+
dry_run: false
35+
3036
- name: Set up Python
3137
uses: actions/setup-python@v3
3238
with:
3339
python-version: '3.x'
40+
3441
- name: Install dependencies
3542
run: |
3643
python -m pip install --upgrade pip twine
3744
pip install build
45+
3846
- name: Build package
3947
run: python -m build --sdist --wheel --outdir dist/ .
4048
- name: Publish distribution to PyPI

pyepsilla/vectordb/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.2.1"
1+
__version__ = "0.2.2"

0 commit comments

Comments
 (0)