File tree Expand file tree Collapse file tree 1 file changed +60
-0
lines changed Expand file tree Collapse file tree 1 file changed +60
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Build Packages
2
+
3
+ on :
4
+ push :
5
+ workflow_dispatch :
6
+ inputs :
7
+ version :
8
+ description : " Version to build"
9
+ required : false
10
+ type : string
11
+ branch :
12
+ description : " Branch to build"
13
+ required : false
14
+ type : string
15
+
16
+
17
+ jobs :
18
+ build-packages :
19
+ name : Build Packages
20
+ runs-on : ["self-hosted", "Ubuntu24.04", "X64"]
21
+ steps :
22
+ - name : Checkout code
23
+ uses : actions/checkout@v4
24
+ with :
25
+ ref : ${{ inputs.branch }}
26
+
27
+ - name : Override version
28
+ if : ${{ inputs.version != '' }}
29
+ run : |
30
+ sed -i "s/^version = .*/version = \"${{ inputs.version }}\"/" pyproject.toml
31
+
32
+ - name : Setup Python
33
+ uses : actions/setup-python@v4
34
+ with :
35
+ python-version : " 3.12"
36
+
37
+ - name : Create virtual environment
38
+ run : |
39
+ python -m venv env
40
+ source env/bin/activate
41
+
42
+ - name : Install poetry
43
+ run : |
44
+ source env/bin/activate
45
+ pip install poetry
46
+
47
+ - name : Install dependencies
48
+ run : |
49
+ poetry install
50
+
51
+ - name : Build wheel
52
+ run : |
53
+ poetry build
54
+
55
+ - name : Upload packages
56
+ uses : actions/upload-artifact@v4
57
+ with :
58
+ name : packages
59
+ path : dist
60
+ retention-days : 1
You can’t perform that action at this time.
0 commit comments