Skip to content

Commit ac521bc

Browse files
committed
publish workflow
1 parent 30d69df commit ac521bc

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/publish.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Publish to PyPI
2+
3+
on:
4+
release:
5+
types:
6+
- published
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
publish:
13+
environment:
14+
name: pypi
15+
url: https://pypi.org/p/fr24sdk
16+
permissions:
17+
id-token: write
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Checkout repository
21+
uses: actions/checkout@v4
22+
- name: Setup uv
23+
uses: astral-sh/setup-uv@v5
24+
with:
25+
enable-cache: true
26+
- name: Install dependencies
27+
run: uv sync
28+
- name: Build package
29+
run: uv build
30+
- name: Publish to PyPI
31+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)