Skip to content

Commit

Permalink
Adding twine
Browse files Browse the repository at this point in the history
  • Loading branch information
tomhamiltonstubber committed Oct 12, 2020
1 parent 069ddd9 commit a930ec9
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,24 @@ jobs:
if: "success() && startsWith(github.ref, 'refs/tags/')"
runs-on: ubuntu-latest
steps:
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@master
- uses: actions/checkout@v2

- name: set up python
uses: actions/setup-python@v1
with:
user: __token__
password: ${{ secrets.pypi_password }}
python-version: '3.8'

- name: install
run: |
make install
pip install -U wheel twine
- name: build
run: python setup.py sdist bdist_wheel

- run: twine check dist/*

- name: upload to pypi
run: twine upload dist/*
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.pypi_token }}

0 comments on commit a930ec9

Please sign in to comment.