6
6
- v*.**
7
7
branches :
8
8
- develop
9
- pull_request :
10
- branches :
11
- - develop
12
- - legacy/.*
13
9
workflow_dispatch :
14
10
15
11
permissions :
@@ -39,15 +35,16 @@ jobs:
39
35
git branch
40
36
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
41
37
42
- - name : Build wheels
43
-
38
+ - name : Build release distributions
39
+ run : |
40
+ uv build --wheel
44
41
env :
45
42
HATCH_BUILD_HOOKS_ENABLE : true
46
43
47
44
- uses : actions/upload-artifact@v4
48
45
with :
49
46
name : wheels-${{ matrix.os }}
50
- path : ./wheelhouse/*.whl
47
+ path : dist/
51
48
52
49
release :
53
50
needs : build_wheels
@@ -57,27 +54,32 @@ jobs:
57
54
environment : release
58
55
steps :
59
56
- uses : actions/checkout@v4
57
+
60
58
- name : Setup backend
61
59
uses : ./.github/actions/setup-backend
60
+
62
61
- name : Configure AWS Credentials
63
62
uses : aws-actions/configure-aws-credentials@v4
64
63
with :
65
64
aws-access-key-id : ${{ secrets.AWS_ACCESS_KEY_ID }}
66
65
aws-secret-access-key : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
67
66
aws-region : us-west-1
67
+
68
68
- name : Download All Artifacts
69
69
uses : actions/download-artifact@v4
70
70
with :
71
71
path : dist
72
72
merge-multiple : true
73
73
pattern : wheels-*
74
+
74
75
- name : Make github release
75
76
uses : softprops/action-gh-release@v2
76
77
if : startsWith(github.ref, 'refs/tags/')
77
78
with :
78
79
files : dist/*
79
80
fail_on_unmatched_files : true
80
81
generate_release_notes : true
82
+
81
83
- name : Publish message to slack
82
84
83
85
if : success() && startsWith(github.ref, 'refs/tags/')
@@ -113,6 +115,7 @@ jobs:
113
115
}
114
116
]
115
117
}
118
+
116
119
- name : Publish failed message to slack
117
120
118
121
if : failure() && startsWith(github.ref, 'refs/tags/')
0 commit comments