Skip to content

Commit

Permalink
👷 github actions improve
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanitsky committed Jun 14, 2020
1 parent 2fc69d0 commit 4517f46
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Create PyPi package

on:
push:
tags:
- "v*.*"

jobs:
publishing:
steps:
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.pypi_password }}
8 changes: 1 addition & 7 deletions .github/workflows/main.yml → .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Python package
name: Tests

on: [push]

Expand Down Expand Up @@ -29,9 +29,3 @@ jobs:
file: ./coverage.xml
name: codecov-umbrella
fail_ci_if_error: true
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@master
if: startsWith(github.ref, 'refs/tags')
with:
user: __token__
password: ${{ secrets.pypi_password }}

0 comments on commit 4517f46

Please sign in to comment.