Skip to content

Commit

Permalink
ci: remove .travis.yml, deploy with twine from a GHA workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
1138-4EB authored and eine committed Jan 24, 2020
1 parent 15a0803 commit fb6e7ab
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 19 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,27 @@ jobs:
run: |
export PATH=$PATH:$(pwd)/../ghdl-v0.36/bin
tox -e py${{ matrix.task }} -- --color=yes
deploy:
runs-on: ubuntu-latest
needs: [ fmt, lin, docker, win ]
if: github.event_name == 'release' && github.event.action == 'created'
steps:
- uses: actions/checkout@v1
with:
submodules: recursive
- uses: actions/setup-python@v1
with:
python-version: 3.8
- name: install dependencies
run: |
pip install -U pip
pip install -U setuptools wheel twine
- name: build and deploy to PyPI
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.VUNIT_HDL_PYPI_DEPLOY_TOKEN }}
run: |
./tools/release.py validate
python setup.py sdist
twine upload dist/*
19 changes: 0 additions & 19 deletions .travis.yml

This file was deleted.

2 changes: 2 additions & 0 deletions tools/release.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env python3

# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
Expand Down

0 comments on commit fb6e7ab

Please sign in to comment.