Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python versipn patch 1 #66

Merged
merged 10 commits into from
Jun 4, 2024
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
15 changes: 15 additions & 0 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,21 @@ jobs:
python -m pip install --upgrade pip
pip install pytest setuptools wheel twine build
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Get release version
id: get_version
run: |
if [[ "$GITHUB_REF" == refs/tags/* ]]; then
VERSION=${GITHUB_REF#refs/tags/}
echo "Release version: $VERSION"
echo ::set-output name=VERSION::$VERSION
else
echo "Not a release tag. Exiting."
exit 1
fi
- name: Update setup.py version
run: |
VERSION=${{ steps.get_version.outputs.VERSION }}
sed -i "s/version='0.0.0'/version='$VERSION'/" setup.py
- name: Build and test
run: |
python -m build
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ def read_file(filename):

setup(
name="article-parser",
version='0.0.0',
author="myifeng",
author_email="[email protected]",
maintainer="myifeng",
Expand Down
Loading