Skip to content

Commit 8bc9f0f

Browse files
committed
github actions
1 parent 972ff39 commit 8bc9f0f

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Publish to StreamStoryPyClient PyPI
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
build-and-publish:
9+
name: Build and publish StreamStoryPyClient to PyPI
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Check out code
14+
uses: actions/checkout@v3
15+
16+
- name: Set up Python
17+
uses: actions/setup-python@v4
18+
with:
19+
python-version: '3.10'
20+
21+
- name: Install poetry
22+
run: pip install poetry
23+
24+
- name: Build and publish
25+
env:
26+
PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
27+
run: |
28+
poetry config pypi-token.pypi $PYPI_API_TOKEN
29+
poetry build
30+
poetry publish

0 commit comments

Comments
 (0)