Skip to content

Commit

Permalink
Fix publish workflow condition (2nd attempt)
Browse files Browse the repository at this point in the history
  • Loading branch information
remia committed Feb 2, 2022
1 parent 35ad9a6 commit fdca211
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@ name: Publish package to PyPI

on:
push:
# Only push to master branch
branches: [master]
tags:
- '*'

jobs:
build-n-publish:
runs-on: ubuntu-20.04
# Only publish on tags
if: startsWith(github.event.ref, 'refs/tags/v')
steps:
- uses: actions/checkout@master
- name: Set up Python 3.9
Expand Down

0 comments on commit fdca211

Please sign in to comment.