Skip to content

Commit

Permalink
Merge pull request #103 from tapdata/docs/update-readme
Browse files Browse the repository at this point in the history
Update README, bump version to 0.2.52, and add GitHub Actions workflo…
  • Loading branch information
dreamcoin1998 authored Dec 30, 2024
2 parents 3c12375 + 5f907c9 commit e39ffeb
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 1 deletion.
39 changes: 39 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Publish to PyPI

on:
push:
tags:
- 'v*' # 当推送版本标签时触发

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

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

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build twine
- name: Extract version from tag
id: get_version
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV

- name: Update version in setup.py
run: |
sed -i "s/version='.*'/version='$VERSION'/g" setup.py
- name: Build package
run: python -m build

- name: Publish to PyPI
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: twine upload dist/*
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[![PyPI Downloads](https://static.pepy.tech/badge/tapflow)](https://pepy.tech/projects/tapflow)

## What is TapFlow

TapFlow is a newly launched programming API framework for the TapData Live Data Platform. It allows developers and data engineers to build data pipelines and models using a simple powerful programming language.
Expand Down Expand Up @@ -327,3 +329,6 @@ We welcome you to join our community and interact with us. You can:

- Star us on [GitHub](https://github.com/tapdata/tapdata)
- Join our [discord](https://discord.gg/xj79hnEB) community or [whatsApp group](https://chat.whatsapp.com/LeY1lVE5GPkEc3TZeEZgDF)

## Stargazers over time
[![Stargazers over time](https://starchart.cc/tapdata/tapflow.svg?variant=adaptive)](https://starchart.cc/tapdata/tapflow)
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

setup(
name='tapflow',
version='0.2.51',
version='0.2.52',
packages=find_packages(),
install_requires=required,
include_package_data=True,
Expand All @@ -22,4 +22,6 @@
'Operating System :: OS Independent',
],
python_requires='>=3.6',
long_description=open("README.md").read(),
long_description_content_type="text/markdown",
)

0 comments on commit e39ffeb

Please sign in to comment.