| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff 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 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments