Skip to content

Commit

Permalink
Publish whl and sphinx on release events (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
chipkent authored Aug 8, 2022
1 parent ef4caef commit 075accd
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ on:
push:
branches:
- main
tags:
- v*
release:
types:
- released

env:
IB_VERSION: 1016.01
Expand Down Expand Up @@ -54,7 +55,7 @@ jobs:
name: Publish WHL
runs-on: ubuntu-20.04
needs: [build-whl]
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
if: ${{ github.event_name == 'release' && github.event.action == 'released' }}
steps:
- name: Download Build Artifacts
uses: actions/download-artifact@v3
Expand Down Expand Up @@ -104,7 +105,7 @@ jobs:
name: Publish Sphinx
runs-on: ubuntu-20.04
needs: [build-sphinx]
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
if: ${{ github.event_name == 'release' && github.event.action == 'released' }}
steps:
- uses: actions/checkout@v1
- name: Download Sphinx Artifacts
Expand Down

0 comments on commit 075accd

Please sign in to comment.