diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..2eb3b55 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,43 @@ +name: Make a release + +on: + push: + # Sequence of patterns matched against refs/tags + tags: + - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 + +jobs: + release: + runs-on: ubuntu-18.04 + steps: + - uses: actions/checkout@v2 + + - name: Set up Python 3.7 + uses: actions/setup-python@v1 + with: + python-version: 3.7 + + - name: Install pypa/build + run: >- + python -m + pip install + build + --user + + - name: Build a binary wheel and a source tarball + run: >- + python -m + build + --sdist + --wheel + --outdir dist/ + . + + - name: Create a github release + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + with: + prerelease: true + files: dist/* + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 957f40a..0000000 --- a/.travis.yml +++ /dev/null @@ -1,28 +0,0 @@ -notifications: - email: false - -matrix: - include: - - sudo: required - services: - - docker - env: DOCKER_IMAGE=quay.io/pypa/manylinux1_x86_64 - -install: - - docker pull $DOCKER_IMAGE - -script: - - echo mock - -before_deploy: - - docker run --rm -v `pwd`:/io $DOCKER_IMAGE $PRE_CMD /io/travis/build-wheels.sh - -deploy: - provider: releases - api_key: $GIT_TOKEN - skip_cleanup: true - file_glob: true - file: wheelhouse/* - # deploy when a new tag is pushed - on: - tags: true diff --git a/travis/build-wheels.sh b/travis/build-wheels.sh deleted file mode 100755 index 14f0e87..0000000 --- a/travis/build-wheels.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/bash -set -e -x - -# Install a system package required by our library -yum install -y atlas-devel - -pushd /io -# Compile wheels -for PYBIN in /opt/python/cp3*/bin; do - "${PYBIN}/python" setup.py bdist_wheel --dist-dir wheelhouse -done -popd - -# Bundle external shared libraries into the wheels -for whl in /io/wheelhouse/*.whl; do - auditwheel repair "$whl" -w /io/wheelhouse/ -done