Debian Codegraph @

.github/workflows/publish-to-pypi.yml

raw
1 name: Publish
2
3 on:
4 release:
5
6 jobs:
7 deploy:
8
9 runs-on: ubuntu-latest
10
11 steps:
12 - uses: actions/checkout@v2
13 - name: Set up Python
14 uses: actions/setup-python@v2
15 with:
16 python-version: '3.8'
17 - name: Install dependencies
18 run: |
19 python -m pip install --upgrade pip
20 pip install poetry
21 - name: Build and publish
22 run: |
23 poetry version $(git describe --tags --abbrev=0)
24 poetry build
25 poetry publish --username ${{ secrets.PYPI_USERNAME }} --password ${{ secrets.PYPI_TOKEN }}