FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Create publish.yml for pypi · python-webuntis/python-webuntis@cf3d241 · GitHub

Commit cf3d241

Browse files
authored
Create publish.yml for pypi
1 parent 8c92d62 commit cf3d241

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

‎.github/workflows/publish.yml‎

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Publish to PyPI
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
build-and-publish:
9+
runs-on: ubuntu-latest
10+
11+
environment:
12+
name: pypi
13+
url: https://pypi.org/p/webuntis
14+
15+
permissions:
16+
contents: read
17+
id-token: write
18+
19+
steps:
20+
- uses: actions/checkout@v4
21+
22+
- uses: actions/setup-python@v5
23+
with:
24+
python-version: "3.x"
25+
26+
- name: Install build tools
27+
run: |
28+
python -m pip install --upgrade pip
29+
python -m pip install build
30+
31+
- name: Build sdist and wheel
32+
run: |
33+
python -m build # erzeugt dist/* wie früher setup.py sdist bdist_wheel
34+
35+
- name: Publish to PyPI
36+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL