From 2ac764ded041054d60e475ccc2af1ce120dc526f Mon Sep 17 00:00:00 2001 From: Sammy Sidhu Date: Thu, 12 Oct 2023 22:29:26 -0700 Subject: [PATCH] add step to list wheels --- .github/workflows/build-artifact-s3.yml | 26 +++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-artifact-s3.yml b/.github/workflows/build-artifact-s3.yml index a671bde41d..a44d1197fe 100644 --- a/.github/workflows/build-artifact-s3.yml +++ b/.github/workflows/build-artifact-s3.yml @@ -10,7 +10,7 @@ env: PYTHON_VERSION: 3.8 jobs: - build: + build-and-push: name: platform wheels for ${{ matrix.os }}-${{ matrix.compile_arch }} runs-on: ${{ matrix.os }}-latest strategy: @@ -62,9 +62,27 @@ jobs: before-script-linux: export JEMALLOC_SYS_WITH_LG_PAGE=16 - name: Copy all files as Zip - run: for foo in dist/*.whl; do cp $foo `basename $foo .whl`.zip; done + run: for foo in dist/*.whl; do cp $foo dist/`basename $foo .whl`.zip; done + - name: Upload wheels to s3 + run: aws s3 cp --no-progress dist/* s3://github-actions-artifacts-bucket/daft-build-artifact-s3/${{ github.sha }}/ - - name: Upload wheels to s3 - run: aws s3 cp dist/* s3://github-actions-artifacts-bucket/daft-build-artifact-s3/${{ github.sha }}/ + list-wheels: + name: Publish wheels to PYPI and Anaconda + runs-on: ubuntu-latest + needs: + - build-and-push + + permissions: + id-token: write + contents: read + steps: + - name: Assume GitHub Actions AWS Credentials + uses: aws-actions/configure-aws-credentials@v3 + with: + aws-region: us-west-2 + role-to-assume: ${{ secrets.ACTIONS_AWS_ROLE_ARN }} + role-session-name: DaftPythonPackageGitHubWorkflow + - name: List Wheels + run: aws s3 ls s3://github-actions-artifacts-bucket/daft-build-artifact-s3/${{ github.sha }}/