Skip to content

Commit

Permalink
Run packaging on master and tags (#9262)
Browse files Browse the repository at this point in the history
  • Loading branch information
patricksanders authored Oct 18, 2021
1 parent d6774fa commit 512f844
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build-and-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Build & Package
on:
push:
branches: [master]
tags: ["*"]
pull_request:
# The branches below must be a subset of the branches above
branches: [master]
Expand Down Expand Up @@ -51,9 +52,9 @@ jobs:
package:
runs-on: ubuntu-latest
needs: build
# Always run on the master branch.
# Run on non-PRs (i.e. push to master & tags)
# Builds on non-tag refs will be uploaded to PyPI as prerelease versions.
if: ${{ github.ref == 'refs/heads/master' && github.repository == 'Netflix/consoleme' }}
if: ${{ github.event_name != 'pull_request' && github.repository == 'Netflix/consoleme' }}
steps:
- uses: actions/checkout@v2
- run: git fetch --prune --unshallow --tags
Expand Down

0 comments on commit 512f844

Please sign in to comment.