File tree Expand file tree Collapse file tree 6 files changed +853
-0
lines changed Expand file tree Collapse file tree 6 files changed +853
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " on " :
3
+ push :
4
+ paths-ignore :
5
+ - " **.md"
6
+ - docs/*
7
+ pull_request :
8
+ paths-ignore :
9
+ - " **.md"
10
+ - docs/*
11
+ workflow_dispatch :
12
+
13
+ # https://github.com/softprops/action-gh-release/issues/236
14
+ permissions :
15
+ contents : write
16
+
17
+ env :
18
+ files : dist/*
19
+ python-version : 3.x
20
+ cache : pip
21
+ PYTHONUTF8 : 1
22
+
23
+ jobs :
24
+ # windows doesn't use cibuildwheel
25
+ build-wheels :
26
+ defaults :
27
+ run :
28
+ shell : msys2 {0}
29
+ runs-on : windows-latest
30
+ steps :
31
+ - uses : actions/checkout@v4
32
+ - uses : msys2/setup-msys2@v2
33
+ with :
34
+ install : gzip make
35
+ pacboy : gcc uv
36
+ - name : Build
37
+ run : |
38
+ uv build --wheel
39
+ - uses : actions/upload-artifact@v4
40
+ with :
41
+ name : artifact-windows-latest
42
+ path : |
43
+ ${{env.files}}
44
+
45
+ build-wheels-and-test :
46
+ strategy :
47
+ fail-fast : false
48
+ matrix :
49
+ runs-on :
50
+ - ubuntu-latest
51
+ - macos-latest
52
+ runs-on : ${{matrix.runs-on}}
53
+ steps :
54
+ - uses : actions/checkout@v4
55
+ - uses : docker/setup-qemu-action@v3
56
+ if : runner.os == 'Linux'
57
+
58
+ - uses : actions/upload-artifact@v4
59
+ with :
60
+ name : artifact-${{matrix.runs-on}}
61
+ path : |
62
+ wheelhouse/*.whl
63
+
64
+ publish :
65
+ needs :
66
+ - build-wheels-and-test
67
+ - build-wheels
68
+ runs-on : ubuntu-latest
69
+ if : startsWith(github.ref, 'refs/tags/')
70
+ steps :
71
+ - uses : actions/checkout@v4
72
+ - uses : actions/download-artifact@v4
73
+ with :
74
+ pattern : artifact-*
75
+ merge-multiple : true
76
+ path : dist
77
+ - uses : astral-sh/setup-uv@v6
78
+ - name : Build
79
+ run : |
80
+ uv build --sdist
81
+ - uses : pypa/gh-action-pypi-publish@release/v1
82
+ with :
83
+ password : ${{secrets.PYPI_API_TOKEN}}
84
+ - uses : softprops/action-gh-release@v2
85
+ with :
86
+ # body_path: build/CHANGELOG.md
87
+ files : |
88
+ ${{env.files}}
Original file line number Diff line number Diff line change
1
+ perl5- * /
2
+ * .gz
3
+ dist /
You can’t perform that action at this time.
0 commit comments