We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71f5b09 commit 0263e3fCopy full SHA for 0263e3f
.github/workflows/publish.yml
@@ -0,0 +1,30 @@
1
+name: Upload Python Package
2
+
3
+on:
4
+ release:
5
+ types:
6
+ - created
7
8
+permissions:
9
+ contents: read
10
11
+jobs:
12
+ publish:
13
+ runs-on: ubuntu-latest
14
15
+ steps:
16
+ - uses: actions/checkout@v3
17
+ - name: Set up Python
18
+ uses: actions/setup-python@v3
19
+ with:
20
+ python-version: '3.10'
21
+ - name: Install dependencies
22
+ run: |
23
+ python -m pip install --upgrade pip
24
+ pip install poetry
25
+ - name: Authenticate with PyPI
26
+ env:
27
+ POETRY_TOKEN: ${{ secrets.PYPI_TOKEN }}
28
+ run: poetry config pypi-token.pypi $POETRY_TOKEN
29
+ - name: Build and Publish
30
+ run: poetry publish --build
0 commit comments