Skip to content

Commit

Permalink
ci: simplify conditions to release on PyPI
Browse files Browse the repository at this point in the history
  • Loading branch information
ajhynes7 committed Feb 26, 2022
1 parent 95ca2d4 commit 98ec749
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ name: scikit-spatial
on:
pull_request:
push:
branches:
- master

jobs:
build:
Expand Down Expand Up @@ -39,10 +37,7 @@ jobs:
gcov_prefix: ${{ env.GITHUB_WORKSPACE }}

- name: Build and publish to PyPI
if: |
github.event_name == 'push' &&
startsWith(github.ref, 'refs/tags') &&
matrix.python-version == '3.9'
if: startsWith(github.ref, 'refs/tags/v')
uses: JRubics/poetry-publish@v1.8
with:
pypi_token: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit 98ec749

Please sign in to comment.