Skip to content

Commit

Permalink
Upload files to GCS only for pushes to relese and release candidate b…
Browse files Browse the repository at this point in the history
…ranches
  • Loading branch information
Tobiasz Kędzierski committed Jun 8, 2020
1 parent 763b75a commit 32cdf7a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ jobs:
name: Prepare GCS
needs: build_source
runs-on: ubuntu-latest
if: github.event_name != 'pull_request'
steps:
- name: Authenticate on GCP
uses: GoogleCloudPlatform/github-actions/setup-gcloud@master
Expand Down Expand Up @@ -97,7 +98,7 @@ jobs:

build_wheels:
name: Build wheels on ${{ matrix.os }}
needs: prepare_gcs
needs: build_source
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand Down Expand Up @@ -131,6 +132,7 @@ jobs:
name: Upload wheels to GCS bucket
needs: build_wheels
runs-on: ubuntu-latest
if: github.event_name != 'pull_request'
strategy:
matrix:
os : [ubuntu-latest, macos-latest]
Expand All @@ -152,6 +154,7 @@ jobs:
name: List files on Google Cloud Storage Bucket
needs: upload_wheels_to_gcs
runs-on: ubuntu-latest
if: github.event_name != 'pull_request'
steps:
- name: Authenticate on GCP
uses: GoogleCloudPlatform/github-actions/setup-gcloud@master
Expand Down

0 comments on commit 32cdf7a

Please sign in to comment.