Debian Codegraph @

.github/workflows/publish-release.yml

raw
1 name: Publish Release
2 on:
3 push:
4 tags:
5 - "[0-9]+.[0-9]+.[0-9]+"
6 jobs:
7 build:
8 runs-on: ubuntu-latest
9 steps:
10 - name: Checkout
11 uses: actions/checkout@v2
12 - name: Setup Python
13 uses: actions/setup-python@v2
14 with:
15 python-version: "3.8"
16 - name: Prepare Env
17 run: |
18 python -m pip install --upgrade pip
19 pip install setuptools wheel
20 - name: Build
21 run: python setup.py sdist bdist_wheel
22 - name: Publish
23 uses: pypa/[email protected]
24 with:
25 user: __token__
26 password: ${{ secrets.PYPI_API_TOKEN }}