Skip to content

Commit 3dae8b3

Browse files
committed
Add publishing github workflow
1 parent 4a5c050 commit 3dae8b3

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/publish.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Publish
2+
on:
3+
push:
4+
tags:
5+
- '*'
6+
jobs:
7+
publish:
8+
runs-on: ubuntu-latest
9+
environment:
10+
name: pypi
11+
url: https://pypi.org/project/tornado-openapi3/
12+
permissions:
13+
id-token: write
14+
steps:
15+
- uses: actions/checkout@v4
16+
- name: Install Python
17+
uses: actions/setup-python@v5
18+
with:
19+
python-version: '3.13'
20+
- name: Install Poetry
21+
run: |
22+
curl -sSL https://install.python-poetry.org | python - -y
23+
- name: Update PATH
24+
run: echo "$HOME/.local/bin" >> $GITHUB_PATH
25+
- name: Update Poetry configuration
26+
run: poetry config virtualenvs.create false
27+
- name: Install dependencies
28+
run: poetry install --sync --no-interaction
29+
- name: Build package
30+
run: poetry build
31+
- name: Publish to PyPI
32+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)