message: `release.yml`: Add publishing to PyPi
diff: @@ -20,3 +20,32 @@ jobs:
  - run: npm publish
  env:
  NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
  +
  + publish-pypi:
  + name: Publish PyPi
  + runs-on: ubuntu-latest
  + steps:
  + - uses: actions/checkout@v3
  + - uses: actions/setup-python@v4
  + with:
  + python-version: '3.10'
  +
  + - name: Install Dependencies
  + run: |
  + python3 -m pip install --upgrade pip
  + python3 -m pip install setuptools wheel twine
  +
  + - name: Build
  + run: |
  + python3 setup.py sdist bdist_wheel
  +
  + - name: Upload to PyPi
  + run: |
  + python3 -m twine upload dist/*
  + env:
  + TWINE_USERNAME: __token__
  + TWINE_PASSWORD: ${{ secrets.TWINE_TOKEN }}
  +
  +
  +
  +
  