Skip to content

Commit

Permalink
Fix publish action
Browse files Browse the repository at this point in the history
Seems the initial code was not correct.

Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
  • Loading branch information
gaborbernat committed Jul 2, 2020
1 parent 23b6e05 commit 2d2268f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 17 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,24 @@ jobs:
run: python -m pip install tox
- name: run check for ${{ matrix.tox_env }}
run: python -m tox -e ${{ matrix.tox_env }}

publish:
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
needs: [check, test, lint]
runs-on: ubuntu-latest
steps:
- name: setup python to build package
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: install pep517
run: python -m pip install pep517
- uses: actions/checkout@v2
- name: build package
run: python -m pep517.build -s -b . -o dist
- name: publish to PyPi
uses: pypa/gh-action-pypi-publish@master
with:
skip_existing: true
user: __token__
password: ${{ secrets.pypi_password }}
17 changes: 0 additions & 17 deletions .github/workflows/publish.yaml

This file was deleted.

0 comments on commit 2d2268f

Please sign in to comment.