Skip to content

Commit

Permalink
ci: migrate from Travis and AppVeyor to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
1138-4EB committed Nov 30, 2019
1 parent 40c1a48 commit 15e5034
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 91 deletions.
39 changes: 0 additions & 39 deletions .appveyor.yml

This file was deleted.

27 changes: 27 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,3 +147,30 @@ jobs:
ssh-keyscan github.com >> ~/.ssh/known_hosts
git push -u origin +master
ssh-agent -k
# Deploy to PyPI whenever a release is pushed
# When a package version has not changed a new upload will not be triggered
deploy:
runs-on: ubuntu-latest
needs: [ lin, docker, win ]
if: github.event_name == 'release' && github.event.action == 'created'
steps:
- uses: actions/checkout@v1
- name: git submodule update
run: git submodule update --init --recursive
- uses: actions/setup-python@v1
with:
python-version: 3.7
- name: install dependencies
run: |
pip install -U pip --progress-bar off
pip install -U setuptools wheel twine --progress-bar off
- name: build and deploy to PyPI
env:
TWINE_USERNAME: ${{ secrets.PYPI_USER }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASS }}
run: |
python tools/release.py validate
#python setup.py sdist bdist_wheel
#twine upload dist/*
echo "This is a placeholder for deployment to PyPI"
52 changes: 0 additions & 52 deletions .travis.yml

This file was deleted.

0 comments on commit 15e5034

Please sign in to comment.