Skip to content

Commit

Permalink
edit pypi deployment conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
joeljonsson authored May 24, 2022
1 parent ce7f4e4 commit 6956eec
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This is a basic workflow to help you get started with Actions

name: build
name: Build and deploy

# Controls when the workflow will run
on:
Expand Down Expand Up @@ -200,12 +200,8 @@ jobs:
runs-on: ubuntu-latest
needs: windows-tests
name: publish to pypi
# only run on push of (version) tag to master/develop
if: |
contains(github.ref, 'tags') &&
github.event_name == 'push' &&
(github.ref == 'refs/heads/master' || github.ref == 'refs/heads/develop')
# only run on push of (version) tag
if: contains(github.ref, 'tags')
steps:
- name: Download wheels from artifacts
uses: actions/download-artifact@v2
Expand Down

0 comments on commit 6956eec

Please sign in to comment.