Skip to content

Commit

Permalink
package upload action
Browse files Browse the repository at this point in the history
  • Loading branch information
michelp committed Sep 2, 2021
1 parent 536dce1 commit f7c8756
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,22 @@ jobs:
python-version: [3.7, 3.8, 3.9]

steps:

- name: checkout
uses: actions/checkout@v2
with:
fetch-depth: 1

- name: Build
run: |
sudo apt install graphviz
sudo python setup.py install
sudo pip install -r minimal-requirements.txt
./test.sh
- name: Publish package
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}

0 comments on commit f7c8756

Please sign in to comment.