-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (26 loc) · 861 Bytes
/
build.yaml
File metadata and controls
31 lines (26 loc) · 861 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
name: Build python package
# description: |-
# A reusable github workflow to build a python package.
# Makes the following outputs available for use by other workflow jobs:
# - `package-name`: Name of the package.
# - `package-version`: Version number of the package.
# Invoke with `uses: glenn20/python-ci/.github/workflow/_build.yaml@v1`
on:
workflow_call:
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch all tags to get correct version on build
- name: Setup python environment
uses: glenn20/python-ci/actions/setup@dev
- name: Build package
run: uv build
- name: Store the distribution packages
uses: actions/upload-artifact@v4
with:
name: python-package
path: dist/