Skip to content

Commit

Permalink
minor: updating python-package to run on all push (#19)
Browse files Browse the repository at this point in the history
GitHub actions didn't trigger after pushing a tag, presumably
because it only acknowledge the master branch.
  • Loading branch information
toumorokoshi authored Feb 15, 2022
1 parent 0af5eef commit e2480ca
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/python-package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ name: Python package
on:
push:
branches: [ master ]
tags:
- 'v*'
pull_request:
branches: [ master ]

Expand Down Expand Up @@ -37,9 +39,4 @@ jobs:
make lint
- name: test
run: |
make test
- name: pypi-release
if: ${{ startsWith(github.ref, 'refs/tags/') && matrix.python-version == '3.10' }}
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_API_TOKEN }}
make test

0 comments on commit e2480ca

Please sign in to comment.