-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (26 loc) · 802 Bytes
/
release.yml
File metadata and controls
35 lines (26 loc) · 802 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Publish Python distribution to PyPI
on:
release:
types: [created]
jobs:
build-and-publish:
name: Publish Python distribution to PyPI.
runs-on: ubuntu-latest
environment:
name: release
url: https://pypi.org/project/PGCacheWatch/
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Ensures tags are also fetched
- name: Set up Python 3.10.
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install release dependencies.
run: python3 -m pip install build twine setuptools_scm
- name: Build package.
run: python3 -m build . --sdist --wheel --outdir dist/
- uses: pypa/gh-action-pypi-publish@release/v1