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 e3aeca5 commit 7756fc1Copy full SHA for 7756fc1
.github/workflows/publish.yml
@@ -0,0 +1,24 @@
1
+name: Upload Python Package
2
+on:
3
+ push:
4
+ branches: [ main ]
5
+
6
+jobs:
7
+ publish:
8
+ name: publish
9
+ runs-on: ubuntu-latest
10
11
+ steps:
12
+ - uses: actions/checkout@v3
13
14
+ - name: Set up Python
15
+ uses: actions/setup-python@v4
16
+ with:
17
+ python-version: '3.7'
18
19
+ - name: Publish to PyPI
20
+ run: |
21
+ pipx install poetry
22
+ bash ./bin/publish-pypi
23
+ env:
24
+ PYPI_TOKEN: ${{ secrets.MERGE_PYPI_TOKEN }}
bin/publish-pypi
@@ -0,0 +1,5 @@
+#!/usr/bin/env bash
+set -eux
+poetry config pypi-token.pypi $PYPI_TOKEN
+poetry publish --build
0 commit comments