Skip to content

Commit fe001b6

Browse files
fix(ci): fix release wheels (#279)
1 parent 417f2f4 commit fe001b6

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@ on:
66
- v*.**
77
branches:
88
- develop
9-
pull_request:
10-
branches:
11-
- develop
12-
- legacy/.*
139
workflow_dispatch:
1410

1511
permissions:
@@ -39,15 +35,16 @@ jobs:
3935
git branch
4036
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
4137
42-
- name: Build wheels
43-
uses: pypa/[email protected]
38+
- name: Build release distributions
39+
run: |
40+
uv build --wheel
4441
env:
4542
HATCH_BUILD_HOOKS_ENABLE: true
4643

4744
- uses: actions/upload-artifact@v4
4845
with:
4946
name: wheels-${{ matrix.os }}
50-
path: ./wheelhouse/*.whl
47+
path: dist/
5148

5249
release:
5350
needs: build_wheels
@@ -57,27 +54,32 @@ jobs:
5754
environment: release
5855
steps:
5956
- uses: actions/checkout@v4
57+
6058
- name: Setup backend
6159
uses: ./.github/actions/setup-backend
60+
6261
- name: Configure AWS Credentials
6362
uses: aws-actions/configure-aws-credentials@v4
6463
with:
6564
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
6665
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
6766
aws-region: us-west-1
67+
6868
- name: Download All Artifacts
6969
uses: actions/download-artifact@v4
7070
with:
7171
path: dist
7272
merge-multiple: true
7373
pattern: wheels-*
74+
7475
- name: Make github release
7576
uses: softprops/action-gh-release@v2
7677
if: startsWith(github.ref, 'refs/tags/')
7778
with:
7879
files: dist/*
7980
fail_on_unmatched_files: true
8081
generate_release_notes: true
82+
8183
- name: Publish message to slack
8284
uses: slackapi/[email protected]
8385
if: success() && startsWith(github.ref, 'refs/tags/')
@@ -113,6 +115,7 @@ jobs:
113115
}
114116
]
115117
}
118+
116119
- name: Publish failed message to slack
117120
uses: slackapi/[email protected]
118121
if: failure() && startsWith(github.ref, 'refs/tags/')

0 commit comments

Comments
 (0)