a b/.github/workflows/release.yml
1
name: release
2
3
on:
4
  release:
5
    types: [created]
6
  workflow_dispatch:
7
    
8
jobs:
9
   publish:
10
    name: Publish to test PyPI
11
    runs-on: ubuntu-latest
12
    steps:
13
      - name: Checkout Repository 
14
        uses: actions/checkout@v3
15
      - name: Set up Python
16
        uses: actions/setup-python@v4
17
        with:
18
          python-version: '3.x'
19
      - name: Install dependencies
20
        run: |
21
          pip install build
22
          pip install twine
23
      - name: Build package
24
        run: python -m build
25
      - name: Upload to PyPI
26
        env:
27
          TWINE_USERNAME: __token__
28
          TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
29
        run: | 
30
          twine upload dist/*.whl