Skip to content

Commit 1be5f24

Browse files
authored
Update pypi-publish.yml
1 parent d880a0b commit 1be5f24

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

.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

0 commit comments

Comments
 (0)