Skip to content

Commit

Permalink
github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jansturm1 committed Jul 7, 2024
1 parent 972ff39 commit 8bc9f0f
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Publish to StreamStoryPyClient PyPI

on:
release:
types: [created]

jobs:
build-and-publish:
name: Build and publish StreamStoryPyClient to PyPI
runs-on: ubuntu-latest

steps:
- name: Check out code
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: Install poetry
run: pip install poetry

- name: Build and publish
env:
PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
run: |
poetry config pypi-token.pypi $PYPI_API_TOKEN
poetry build
poetry publish

0 comments on commit 8bc9f0f

Please sign in to comment.