There was an error while loading. Please reload this page.
1 parent c048d45 commit 99063e2Copy full SHA for 99063e2
1 file changed
.github/workflows/publish-pypi.yml
@@ -0,0 +1,20 @@
1
+name: Publish to PyPI
2
+on:
3
+ release:
4
+ types: [published]
5
+
6
+jobs:
7
+ pypi_release:
8
+ name: Builds Using Poetry and Publishes to PyPI
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - uses: actions/checkout@v2
12
+ - uses: actions/setup-python@v2
13
+ - name: Install Poetry
14
+ run: curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python
15
+ - name: Add Poetry to path
16
+ run: echo "${HOME}/.poetry/bin" >> $GITHUB_PATH
17
+ - run: poetry install
18
+ - run: poetry config pypi-token.pypi "${{ secrets.PYPI_API_KEY }}"
19
+ - name: Publish package
20
+ run: poetry publish --build
0 commit comments