Skip to content

23.12.0

23.12.0 #7

Workflow file for this run

name: Release
on:
release:
types: ["published"]
jobs:
deploy:
runs-on: ubuntu-latest
name: Deploy to PyPi
steps:
- name: 📥 Checkout the repository
uses: actions/checkout@v3
- name: 🛠 Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
id: python
with:
python-version: 3.x
- name: 📦 Install dependencies
run: python3 -m pip install setuptools wheel twine
- name: 🔢 Set version number
run: |
export version=${{ github.ref }}
sed -i "s|master|${version##*/}|" ./setup.py
cat ./setup.py
- name: 🚀 Publish to PyPi
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*