We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1cd34cf commit 2c9948aCopy full SHA for 2c9948a
.github/workflows/publish-to-pypi.yml
@@ -0,0 +1,25 @@
1
+name: Publish to PyPI
2
+
3
+on:
4
+ release:
5
+ types: [published]
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.8
16
+ - name: Install dependencies
17
+ run: |
18
+ python -m pip install --upgrade pip
19
+ pip install poetry
20
+ - name: Build and publish
21
+ env:
22
+ PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
23
24
+ poetry build
25
+ poetry publish --username __token__ --password $PYPI_API_TOKEN
0 commit comments