-
Notifications
You must be signed in to change notification settings - Fork 82
52 lines (42 loc) · 1.1 KB
/
build.yaml
File metadata and controls
52 lines (42 loc) · 1.1 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Package Build
permissions:
contents: read
pull-requests: read
actions: write
on:
pull_request:
branches:
- main
workflow_dispatch:
concurrency:
group: ci-${{ github.repository }}-package-build-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
strategy:
matrix:
python-version: ["3.11"]
os: [ubuntu-22.04]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- uses: ./.github/actions/setup-uv-project
- name: Build
run: |
uv build
- name: Get wheel filename
id: get_wheel
run: |
wheel=$(basename $(ls -1 dist/*.whl))
echo "wheel_name=$wheel" >> $GITHUB_OUTPUT
- name: Upload Wheel Artifact
uses: actions/upload-artifact@v6
with:
name: ${{ steps.get_wheel.outputs.wheel_name }}
path: dist/*.whl
retention-days: 7