Debian Codegraph @

.github/workflows/pypi.yml

raw
1 name: Publish Python Package to Pypi.org
2
3 on:
4 release:
5 types: [published]
6
7 permissions:
8 id-token: write
9
10 jobs:
11 pypi-publish:
12 name: Release Python Package on Pypi.org
13 runs-on: ubuntu-latest
14 environment:
15 name: pypi
16 url: https://pypi.org/p/djangorestframework-gis
17 permissions:
18 id-token: write
19 steps:
20 - uses: actions/checkout@v7
21 - name: Set up Python
22 uses: actions/setup-python@v7
23 with:
24 python-version: "3.x"
25 - name: Install dependencies
26 run: |
27 pip install -U pip
28 pip install build
29 - name: Build package
30 run: python -m build
31 - name: Publish package distributions to PyPI
32 uses: pypa/[email protected]