From 8a9c53eef4310ef2aec82b3f2bd02f75b1806a70 Mon Sep 17 00:00:00 2001 From: Maximilian Mitchell Date: Fri, 2 Apr 2021 17:01:34 +0100 Subject: [PATCH] attempt to fix CI deploy --- .github/workflows/push.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 67499aa1..92d81353 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -7,7 +7,6 @@ jobs: runs-on: ubuntu-latest outputs: version: ${{ steps.version.outputs.VERSION }} - deploy: ${{ steps.version.outputs.SHOULD_DEPLOY }} steps: - uses: actions/checkout@v2 with: @@ -24,10 +23,8 @@ jobs: run: | if [ -n "${{ steps.bump_version.outputs.new_tag }}" ] then - echo ::set-output name=SHOULD_DEPLOY::true echo ::set-output name=VERSION::${{ steps.bump_version.outputs.new_tag }} else - echo ::set-output name=SHOULD_DEPLOY::false echo ::set-output name=VERSION::ci-$GITHUB_RUN_ID fi @@ -84,12 +81,11 @@ jobs: with: name: notifi-dmg path: dmg/ - retention-days: 1 if-no-files-found: error deploy: name: "Deploy" - if: ${{ needs.version.outputs.deploy == true }} + if: ${{ github.ref == 'refs/heads/master' || (!github.event.issue.pull_request && github.ref == 'refs/heads/develop') }} runs-on: macos-latest needs: [ checks, build, version ] steps: