Skip to content

Commit

Permalink
Separate tests and release workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
drgarcia1986 committed Oct 26, 2021
1 parent fd1bbdd commit e7cdfef
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 7 deletions.
7 changes: 0 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,3 @@ jobs:
coveralls --service=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Publish a Python distribution to PyPI
uses: pypa/gh-action-pypi-publish@master
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
with:
user: ${{ secrets.PYPI_USER }}
password: ${{ secrets.PYPI_PASSWORD }}
25 changes: 25 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Release

on:
push:
tags:
- '*'

jobs:
release:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: install pypa/build
run: python -m pip install build --user

- name: build a binary whell and a source tarball
run: python -m build --sdist --wheel --outdir dist/ .

- name: Publish a Python distribution to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
user: ${{ secrets.PYPI_USER }}
password: ${{ secrets.PYPI_PASSWORD }}

0 comments on commit e7cdfef

Please sign in to comment.