diff --git a/.github/workflows/test-and-deploy.yml b/.github/workflows/test-and-deploy.yml index 84d21db2..52a91171 100644 --- a/.github/workflows/test-and-deploy.yml +++ b/.github/workflows/test-and-deploy.yml @@ -185,14 +185,8 @@ jobs: steps: - name: Checkout - # uses: actions/checkout@v2 - run: | - yum update - yum install -y git - git config --global --add safe.directory /__w/GPy/GPy - git clone --depth=1 https://github.com/${{ github.repository }}.git . - git checkout ${{ github.sha }} - + uses: actions/checkout@v4 + - name: Install build dependencies run: | /opt/python/${{ matrix.python }}/bin/python -m pip install setuptools @@ -205,7 +199,7 @@ jobs: run: | /opt/python/${{ matrix.python }}/bin/python setup.py bdist_wheel - - name: Install auditwheel # this should be available?! + - name: Install auditwheel run: | /opt/python/${{ matrix.python }}/bin/python -m pip install auditwheel @@ -228,25 +222,12 @@ jobs: - name: List contents of dist run: ls -R dist - - name: Upload artifact using curl - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - tar -czf dist-artifacts-linux-${{ matrix.python }}.tar.gz -C dist . - curl -H "Authorization: token $GITHUB_TOKEN" \ - -H "Content-Type: application/zip" \ - --data-binary @dist-artifacts-manylinux-${{ matrix.python }}.tar.gz \ - "https://uploads.github.com/repos/${{ github.repository }}/actions/artifacts/${{ github.run_id }}/dist-artifacts-manylinux-${{ matrix.python }}?name=dist-artifacts-manylinux-${{ matrix.python }}.tar.gz" + - name: Archive build artifacts + uses: actions/upload-artifact@v4 with: name: dist-artifacts-manylinux-${{ matrix.python }} path: dist/* - # - name: Archive build artifacts - # uses: actions/upload-artifact@v1 - # with: - # name: dist-artifacts-manylinux-${{ matrix.python }} - # path: dist/* - deploy-test: runs-on: ubuntu-latest needs: [test-windows, test-linux, test-macos, build-linux, build-windows, build-macos]