We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5012694 commit 033e032Copy full SHA for 033e032
.github/workflows/publish.yml
@@ -0,0 +1,28 @@
1
+name: Publish to pip
2
+
3
+on:
4
+ release:
5
+ types: [ published ]
6
7
+jobs:
8
+ deploy:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - uses: actions/checkout@v3
12
+ - name: Set up Python
13
+ uses: actions/setup-python@v4
14
+ with:
15
+ python-version: '3.x'
16
+ - name: Install dependencies
17
+ run: |
18
+ sudo apt-get update -y
19
+ python -m pip install --upgrade pip setuptools wheel build
20
+ python -m pip install pytest pytest-asyncio pytest-postgresql pylint
21
+ - name: Build package
22
23
+ python -m build
24
+ - name: Publish distribution 📦 to PyPI
25
+ uses: pypa/gh-action-pypi-publish@release/v1
26
27
+ user: __token__
28
+ password: ${{ secrets.PYPI_API_TOKEN }}
0 commit comments