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+ # Build and Publish DEVPI (UV)
2+
3+ ** Name:** `` Build and Publish DEVPI (UV) ``
4+
5+ ** Workflow File:** `` release-pkg-devpi-python ``
6+
7+ ** Description:**
8+
9+ This workflow builds a python package and uses uv to upload it to devpi (SIPE's internal python package repository).
10+
11+ ** Created By:** Jessy Liao (SIPE)
12+
13+ ## Parameters
14+
15+ ** Inputs:**
16+
17+ - `` runner-label `` (optional): runner to use
18+ - default: to "eng-tools"
19+
20+ ** Outputs:** N/A
21+
22+ ## Examples
23+
24+ ### Example 1: Publish on new tag
25+
26+ ** workflow.yml**
27+ ``` yml
28+ name : Tag and Publish
29+
30+ on :
31+ push :
32+ branches :
33+ - main
34+
35+ jobs :
36+ publish :
37+ needs : tag
38+ uses : AllenNeuralDynamics/.github/.github/workflows/release-pkg-devpi-python.yml@main
39+ with :
40+ tag-name : ${{ github.ref }}
41+ ` ` `
42+
43+ **Results:**
44+
45+ - Automatically build python package and uploads it to devpi whenever changes are pushed to main
Original file line number Diff line number Diff line change 5757jobs :
5858 publish :
5959 needs : tag
60- uses : AllenNeuralDynamics/.github/.github/workflows/release-exe-uv_pyinstaller-python.yml@dev
60+ uses : AllenNeuralDynamics/.github/.github/workflows/release-exe-uv_pyinstaller-python.yml@main
6161 with :
6262 tag-name : ${{ github.ref }}
6363` ` `
8282
8383jobs :
8484 tag :
85- uses : AllenNeuralDynamics/.github/.github/workflows/release-tag-uv-python.yml@dev
85+ uses : AllenNeuralDynamics/.github/.github/workflows/release-tag-uv-python.yml@main
8686 publish :
8787 needs : tag
88- uses : AllenNeuralDynamics/.github/.github/workflows/release-exe-uv_pyinstaller-python.yml@dev
88+ uses : AllenNeuralDynamics/.github/.github/workflows/release-exe-uv_pyinstaller-python.yml@main
8989 with :
9090 project-version : ${{ needs.auto-tag.outputs.version }}
9191 tag-name : v${{ needs.auto-tag.outputs.version }}
Original file line number Diff line number Diff line change 4141
4242jobs :
4343 tag :
44- uses : AllenNeuralDynamics/.github/.github/workflows/release-tag-uv-python.yml@dev
44+ uses : AllenNeuralDynamics/.github/.github/workflows/release-tag-uv-python.yml@main
4545` ` `
4646
4747**Results:**
8484
8585jobs :
8686 tag :
87- uses : AllenNeuralDynamics/.github/.github/workflows/release-tag-uv-python.yml@dev
87+ uses : AllenNeuralDynamics/.github/.github/workflows/release-tag-uv-python.yml@main
8888 publish :
8989 needs : tag
90- uses : AllenNeuralDynamics/.github/.github/workflows/release-exe-uv_pyinstaller-python.yml@dev
90+ uses : AllenNeuralDynamics/.github/.github/workflows/release-exe-uv_pyinstaller-python.yml@main
9191 with :
9292 project-version : ${{ needs.auto-tag.outputs.version }}
9393 tag-name : v${{ needs.auto-tag.outputs.version }}
Original file line number Diff line number Diff line change 1- name : Build and publish to devpi
1+ name : Build and Publish DEVPI (UV)
22
33on :
44 workflow_call :
55 inputs :
6- runner_label :
6+ runner-label :
77 description : ' Runner to use'
88 type : string
99 default : ' eng-tools'
1515
1616jobs :
1717 publish :
18- runs-on : ${{ inputs.runner_label }}
18+ runs-on : ${{ inputs.runner-label }}
1919 env :
2020 UV_PYTHON_INSTALL_DIR : C:\ProgramData\AIBS_MPE\uv_python
2121 UV_TOOL_DIR : C:\ProgramData\AIBS_MPE\uv_python
You can’t perform that action at this time.
0 commit comments