Skip to content

Commit

Permalink
added release job
Browse files Browse the repository at this point in the history
  • Loading branch information
dbarrosop committed Jun 6, 2020
1 parent a8966ff commit 829eb39
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,22 @@ jobs:

- name: Run pytest
run: make pytest

release:
name: Releasing to pypi
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Build
uses: abatilo/[email protected]
with:
python_version: 3.8.0
poetry_version: 1.0
working_directory: .
args: build
- name: Publish package
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.pypi_password }}

0 comments on commit 829eb39

Please sign in to comment.