Skip to content

Commit d590f5c

Browse files
committed
Add publishing cicd
1 parent 8183a50 commit d590f5c

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

.github/workflows/publish.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Publish Needle Python
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
publish-to-pypi:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v4
14+
15+
- uses: actions/setup-python@v5
16+
with:
17+
python-version: "3.11"
18+
cache: poetry
19+
20+
- name: Install dependencies
21+
run: poetry install --no-dev
22+
23+
- name: Publish to PyPI
24+
run: poetry publish --build --username __token__ --password ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)