Skip to content

Commit 3006a3a

Browse files
author
spencer@primus
committed
Add publishing workflow
1 parent 6cb6720 commit 3006a3a

1 file changed

Lines changed: 46 additions & 0 deletions

File tree

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Publish a release to TestPyPI
2+
3+
on:
4+
workflow_call:
5+
inputs:
6+
os:
7+
default: ubuntu-22.04
8+
type: string
9+
python-version:
10+
required: false
11+
type: string
12+
default: "3.10"
13+
uv-version:
14+
required: false
15+
type: string
16+
default: "0.6.14"
17+
token:
18+
required: true
19+
type: string
20+
index:
21+
required: true
22+
type: string
23+
24+
env:
25+
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
26+
27+
jobs:
28+
build:
29+
name: Build and publish the package to pypi
30+
runs-on: ${{ inputs.os }}
31+
steps:
32+
- uses: actions/checkout@v4
33+
with:
34+
submodules: recursive
35+
36+
- name: Init UV and python
37+
uses: avstack-lab/workflows/.github/actions/install-uv
38+
with:
39+
python-version: ${{ inputs.python-version }}
40+
uv-version: ${{ inputs.uv-version }}
41+
42+
- name: Build
43+
run: uv build
44+
45+
- name: Publish
46+
run: uv publish --index ${{ inputs.index }} --token ${{ inputs.token }} --verbose

0 commit comments

Comments
 (0)