Skip to content

Commit ad505c8

Browse files
committed
👷 auto publish to pypi
1 parent 292ecd3 commit ad505c8

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/publish.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Publish
2+
3+
on:
4+
push:
5+
tags:
6+
- '**'
7+
workflow_dispatch: ~
8+
9+
jobs:
10+
release:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Set up Python
17+
uses: actions/setup-python@v3
18+
with:
19+
python-version: 3.11
20+
21+
- name: Install Poetry and Twine
22+
run: |
23+
pip install poetry twine
24+
25+
- name: Install dependencies
26+
run: poetry install
27+
28+
- name: Build wheel
29+
run: poetry build
30+
31+
- name: upload to pypi
32+
run: twine upload dist/*
33+
env:
34+
TWINE_USERNAME: __token__
35+
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)