Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions .github/workflows/pypi-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,17 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Get version defined
id: version
run: echo "::set-output name=version::$(cat ./pyepsilla/vectordb/version.py |awk -F'"' '{print $(NF-1)}')"

- name: Bump version and push tag
id: tag_version
uses: mathieudutour/github-tag-action@v6.1
with:
github_token: ${{ secrets.PAT_TOKEN }}
tag_prefix: ""
tag_prefix: ""
custom_tag: ${{ steps.version.outputs.version }}
dry_run: true

- name: Set up Python
Expand All @@ -36,7 +41,7 @@ jobs:

- name: Install dependencies
run: |
echo "new tag: " ${{ steps.tag_version.outputs.new_tag }} "," ${{ steps.tag_version.outputs.new_version }}
echo "!!!new tag: ${{ steps.tag_version.outputs.new_tag }} ,${{ steps.tag_version.outputs.new_version }} "
pip install -r requirements.txt
python -m pip install --upgrade pip twine build
python -m build --sdist --wheel --outdir dist/ .
Expand Down
12 changes: 10 additions & 2 deletions .github/workflows/pypi-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,29 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Get version defined
id: version
run: echo "::set-output name=version::$(cat ./pyepsilla/vectordb/version.py |awk -F'"' '{print $(NF-1)}')"

- name: Bump version and push tag
id: tag_version
uses: mathieudutour/github-tag-action@v6.1
with:
github_token: ${{ secrets.PAT_TOKEN }}
tag_prefix: ""
dry_run: false
tag_prefix: ""
custom_tag: ${{ steps.version.outputs.version }}
dry_run: false

- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'

- name: Install dependencies
run: |
python -m pip install --upgrade pip twine
pip install build

- name: Build package
run: python -m build --sdist --wheel --outdir dist/ .
- name: Publish distribution to PyPI
Expand Down
2 changes: 1 addition & 1 deletion pyepsilla/vectordb/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.2.1"
__version__ = "0.2.2"