From 075accdadcac6999d6c6b3146e06a9aa139282c2 Mon Sep 17 00:00:00 2001 From: Chip Kent <5250374+chipkent@users.noreply.github.com> Date: Mon, 8 Aug 2022 16:24:41 -0600 Subject: [PATCH] Publish whl and sphinx on release events (#73) --- .github/workflows/build-and-publish.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-and-publish.yml b/.github/workflows/build-and-publish.yml index ad33fd5b..eb20235a 100644 --- a/.github/workflows/build-and-publish.yml +++ b/.github/workflows/build-and-publish.yml @@ -7,8 +7,9 @@ on: push: branches: - main - tags: - - v* + release: + types: + - released env: IB_VERSION: 1016.01 @@ -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 @@ -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