Skip to content

fix(ci): fix release wheels #279

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 4, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 10 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ on:
- v*.**
branches:
- develop
pull_request:
branches:
- develop
- legacy/.*
workflow_dispatch:

permissions:
Expand Down Expand Up @@ -39,15 +35,16 @@ jobs:
git branch
git fetch --depth=1 origin +refs/tags/*:refs/tags/*

- name: Build wheels
uses: pypa/[email protected]
- name: Build release distributions
run: |
uv build --wheel
env:
HATCH_BUILD_HOOKS_ENABLE: true

- uses: actions/upload-artifact@v4
with:
name: wheels-${{ matrix.os }}
path: ./wheelhouse/*.whl
path: dist/

release:
needs: build_wheels
Expand All @@ -57,27 +54,32 @@ jobs:
environment: release
steps:
- uses: actions/checkout@v4

- name: Setup backend
uses: ./.github/actions/setup-backend

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-west-1

- name: Download All Artifacts
uses: actions/download-artifact@v4
with:
path: dist
merge-multiple: true
pattern: wheels-*

- name: Make github release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: dist/*
fail_on_unmatched_files: true
generate_release_notes: true

- name: Publish message to slack
uses: slackapi/[email protected]
if: success() && startsWith(github.ref, 'refs/tags/')
Expand Down Expand Up @@ -113,6 +115,7 @@ jobs:
}
]
}

- name: Publish failed message to slack
uses: slackapi/[email protected]
if: failure() && startsWith(github.ref, 'refs/tags/')
Expand Down
Loading