File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments