diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..7471cda --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,26 @@ +name: Upload Python Package + +on: + release: + types: [created] + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: Set up Python + uses: actions/setup-python@v1 + with: + python-version: '3.x' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install setuptools wheel twine + - name: Build and publish + env: + TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} + TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + run: | + python setup.py sdist bdist_wheel + twine upload dist/* \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 5538a18..0000000 --- a/.travis.yml +++ /dev/null @@ -1,24 +0,0 @@ -dist: trusty -sudo: required -before_install: -language: python -python: -- '3.6' -install: -- pip install -r requirements.txt -- python setup.py install -- pip install coveralls -before_script: -- export DISPLAY=:99.0 -- sh -e /etc/init.d/xvfb start -- sleep 3 -script: -- coverage run --source=talos ./test_script.py -after_success: coveralls -deploy: - provider: pypi - user: "mikkokotila" - password: - secure: eeBLzRNgvnm3iC+wKcwLcONyVmYO6bPU8H59KO4j1vA5lS2PPPCQVhpSZTmXXMla5jZkW668gR57JExhFdpeZSMrmbNkwmxyV46nWOwEXOyTGKD+5bFgAfBeDnKhpiQcF/cW7oJv3R15ksN05UduOqETRgWXOIi7k6caFNWxy9yLziTegliSsWzePcTHYjFxRWhFUxTHFEIw8zI8I155AISB3UxkruzJtq01pHl74RwgG51IcwNQiABW7GKq5JCvJ7Gwh1lFfpb5CZibVMEy5a7vlp/9fmeF2EsSQqnvNkkEj+Dhj+3sgbn39yEhEacK8LiKdDrGoQDQuFaKnmqy+zxWaw+V9Vl4ORdeW0OQqe36zgRd44HJcX4ja2rdEamQrgkP1wrddRNNOwy6D5C9s0UTTj2ziNUsSxT+4K1On8AKYLctobR8ap9NYc330YWJa04EUPYSrRn7dU3zybVzkaJ0Mx+WRgRRhpxVBockJxBXROAOwzAiMa8s8rTxBhISz6GaGd4UVh+v/d8vaQGSHyY97nhAlU1ainV2QPA0AxowjWCrEVn7xcqEpYdlHzDKFXXhlPdCencoKP4sPlvbeMju0V2iSiA8xR37nw5fMiVy8sFvBvILLf1Oa+rtfzXwlRPaEwSYu8T9WeaANi+qLOEfgXxzXPqr9mdPOo/0hmk= - on: - branch: production