Skip to content

Commit

Permalink
Allow CI to run on release tags too
Browse files Browse the repository at this point in the history
  • Loading branch information
zerolab committed Mar 9, 2021
1 parent a4e095a commit 2804dac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: CI
on:
push:
branches: [main]
tags:
- v[0-9]+.[0-9]+.[0-9]+
pull_request:
branches: [main]

Expand Down Expand Up @@ -63,7 +65,7 @@ jobs:
pip install .
build_and_publish:
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
if: startsWith(github.ref, 'refs/tags/v')
needs: [lint, test]
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 2804dac

Please sign in to comment.