Skip to content

Commit

Permalink
release 4.2.1 (#54)
Browse files Browse the repository at this point in the history
- bump version to 4.2.1
- add release pipeline
  • Loading branch information
wd0517 authored Sep 7, 2023
1 parent 73eb563 commit 543bc24
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 1 deletion.
38 changes: 38 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Publish Python 🐍 distributions 📦 to PyPI

on:
push:
tags:
- '*'

jobs:
build-n-publish:
name: Build and publish Python 🐍 distributions 📦 to PyPI
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 pypa/build
run: >-
python3 -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
run: >-
python3 -m
build
--sdist
--wheel
--outdir dist/
.
- name: Publish distribution 📦 to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
verbose: true
print-hash: true
2 changes: 1 addition & 1 deletion django_tidb/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
# wrong version of Django is installed.
from .functions import register_functions

__version__ = "4.2.0"
__version__ = "4.2.1"

register_functions()

0 comments on commit 543bc24

Please sign in to comment.