-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (42 loc) · 1.1 KB
/
build-distribution.yml
File metadata and controls
56 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
53
54
55
name: Build Distribution
on:
workflow_call:
inputs:
path:
type: string
default: "./src"
python-version:
type: string
default: "3.x"
repository:
type: string
default: ${{ github.repository }}
artifact-name:
type: string
default: "python-package-distributions"
jobs:
build-distribution:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v5
with:
repository: ${{ inputs.repository }}
persist-credentials: false
- name: Setup Python ${{ inputs.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ inputs.python-version }}
- name: Upgrade Pip
run: |
python -m pip install --upgrade pip
- name: Install Build
run: |
python -m pip install build
- name: Build Repo
run: python -m build
- name: Save Artifact
uses: actions/upload-artifact@v7
with:
name: ${{ inputs.artifact-name }}
path: dist/