Debian Codegraph @

.github/workflows/publish.yml

raw
1 name: Upload Python Package on Release
2
3 on:
4 release:
5 types: [created]
6
7 jobs:
8 deploy:
9 runs-on: ubuntu-latest
10 steps:
11 - uses: actions/checkout@v2
12 - name: Set up Python
13 uses: actions/setup-python@v2
14 with:
15 python-version: '3.x'
16 - name: Install dependencies
17 run: make publish_deps deps
18 - name: Test code
19 run: make test
20 - name: Build and publish
21 env:
22 TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
23 TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
24 run: make clean dist publish