Debian Codegraph @

.github/workflows/publish.yml

raw
1 name: Upload Python Package
2
3 on:
4 release:
5 types: [created]
6
7 jobs:
8 deploy:
9 runs-on: ubuntu-latest
10
11 steps:
12 - uses: actions/checkout@v3
13 - name: Set up Python
14 uses: actions/setup-python@v5
15 with:
16 python-version: "3.x"
17 - name: Install dependencies
18 run: |
19 python -m pip install --upgrade pip
20 pip install setuptools wheel twine
21 - name: Build and publish
22 env:
23 TWINE_USERNAME: __token__
24 TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
25 run: |
26 python setup.py sdist bdist_wheel
27 twine upload dist/*