Debian Codegraph @

.github/workflows/publish-release.yml

raw
1 on:
2 push:
3 tags:
4 - "[0-9]+.[0-9]+.[0-9]+"
5 jobs:
6 build:
7 runs-on: ubuntu-latest
8 steps:
9 - uses: actions/checkout@v3
10 - uses: actions/setup-python@v4
11 with:
12 python-version: '3.10'
13 cache: 'pip'
14 cache-dependency-path: 'requirements/*.txt'
15 - name: update pip
16 run: |
17 pip install -U wheel
18 pip install -U setuptools
19 python -m pip install -U pip
20 - run: pip install -r requirements/ci-release.txt
21 - run: python -m build
22 - run: twine check dist/*
23 - name: Publish to PyPI
24 uses: pypa/[email protected]
25 with:
26 user: __token__
27 password: ${{ secrets.PYPI_API_TOKEN }}