8000 feat: added autodeploy to pypi · u2d-ai/msaDocModels@9718734 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9718734

Browse files
feat: added autodeploy to pypi
1 parent a7bf4e6 commit 9718734

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/ci.yml

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

0 commit comments

Comments
 (0)
0