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 33c95f7 commit 4a29674Copy full SHA for 4a29674
.github/workflows/publish.yml
@@ -0,0 +1,25 @@
1
+# This workflows will upload a Python Package using Poetry when a release is created
2
+name: Upload Python Package
3
+
4
+on:
5
+ release:
6
+ types: [created]
7
8
+jobs:
9
+ deploy:
10
+ runs-on: ubuntu-latest
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
+ poetry export -f requirements.txt --output requirements.txt
21
+ pip install -r requirements.txt
22
+ - name: Build and publish
23
+ env:
24
+ POETRY_PYPI_TOKEN_PYPI: ${{ secrets.POETRY_PYPI_TOKEN_PYPI }}
25
+ run: poetry publish --build
0 commit comments