Skip to content

Commit bcb4b27

Browse files
committed
ci: add pypi deployment
1 parent 71cc596 commit bcb4b27

1 file changed

Lines changed: 46 additions & 0 deletions

File tree

.github/workflows/wheels.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Build wheels
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
name: Build wheels
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v6
11+
- name: Setup Python
12+
uses: actions/setup-python@v6
13+
with:
14+
python-version: 3.14
15+
- name: Install build
16+
run: |
17+
python -m pip install --upgrade pip
18+
pip install build
19+
20+
- name: Build
21+
run:
22+
python3 -m build
23+
24+
- uses: actions/upload-artifact@v7
25+
with:
26+
name: package-dist
27+
path: dist
28+
29+
upload:
30+
name: Upload wheels and sdist
31+
runs-on: ubuntu-latest
32+
33+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
34+
needs: [build]
35+
environment:
36+
name: pypi
37+
url: https://pypi.org/p/basil-daq/
38+
permissions:
39+
id-token: write
40+
41+
steps:
42+
- uses: actions/download-artifact@v8
43+
with:
44+
name: package-dist
45+
path: dist
46+
- uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)