Skip to content

fix: support Chinese characters in metadata - Fix encoding issue when… #4

fix: support Chinese characters in metadata - Fix encoding issue when…

fix: support Chinese characters in metadata - Fix encoding issue when… #4

Workflow file for this run

name: Publish to PyPI
on:
push:
tags:
- 'v*' # 当推送版本标签时触发
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build twine
- name: Build and publish
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
python -m build
python -m twine upload dist/*