Skip to content

Commit

Permalink
Publish v0.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
elacuesta committed Dec 19, 2020
1 parent 01027cc commit fef08c2
Showing 1 changed file with 24 additions and 4 deletions.
28 changes: 24 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
- uses: actions/checkout@v2

- name: Set up Python version
uses: actions/setup-python@v1
uses: actions/setup-python@v2
with:
python-version: 3.8

Expand All @@ -27,7 +27,7 @@ jobs:
- uses: actions/checkout@v2

- name: Set up Python version
uses: actions/setup-python@v1
uses: actions/setup-python@v2
with:
python-version: 3.8

Expand All @@ -44,7 +44,7 @@ jobs:
- uses: actions/checkout@v2

- name: Set up Python version
uses: actions/setup-python@v1
uses: actions/setup-python@v2
with:
python-version: 3.8

Expand All @@ -65,7 +65,7 @@ jobs:
- uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

Expand All @@ -82,3 +82,23 @@ jobs:

- name: Upload coverage report
run: bash <(curl -s https://codecov.io/bash)

publish:
runs-on: ubuntu-18.04

steps:
- uses: actions/checkout@v2

- name: Set up Python version
uses: actions/setup-python@v2
with:
python-version: 3.8

- name: Publish to PyPI
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
run: |
pip install --upgrade setuptools wheel twine
python setup.py sdist bdist_wheel
export TWINE_USERNAME=__token__
export TWINE_PASSWORD=${{ secrets.PYPI_TOKEN }}
twine upload dist/*

0 comments on commit fef08c2

Please sign in to comment.