From f5d08ae17171bdb3e7e1e81116634209d0a779fc Mon Sep 17 00:00:00 2001 From: Christine Wang Date: Tue, 4 Feb 2025 14:15:24 -0800 Subject: [PATCH 1/2] chore: fix release whells --- .github/workflows/release.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f9c1e597c..3317c4e2b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -39,15 +39,16 @@ jobs: git branch git fetch --depth=1 origin +refs/tags/*:refs/tags/* - - name: Build wheels - uses: pypa/cibuildwheel@v2.22.0 + - 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 @@ -57,20 +58,24 @@ 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/') @@ -78,6 +83,7 @@ jobs: files: dist/* fail_on_unmatched_files: true generate_release_notes: true + - name: Publish message to slack uses: slackapi/slack-github-action@v2.0.0 if: success() && startsWith(github.ref, 'refs/tags/') @@ -113,6 +119,7 @@ jobs: } ] } + - name: Publish failed message to slack uses: slackapi/slack-github-action@v2.0.0 if: failure() && startsWith(github.ref, 'refs/tags/') From 2f6c4d7ebaf588162e20ab4abdc75a0447b4f4b4 Mon Sep 17 00:00:00 2001 From: Christine Wang Date: Tue, 4 Feb 2025 14:19:26 -0800 Subject: [PATCH 2/2] skip running on pr --- .github/workflows/release.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3317c4e2b..c2f9f4f20 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,10 +6,6 @@ on: - v*.** branches: - develop - pull_request: - branches: - - develop - - legacy/.* workflow_dispatch: permissions: