Skip to content

Commit

Permalink
attempt to fix CI deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
maxisme committed Apr 2, 2021
1 parent 739746a commit 8a9c53e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 8a9c53e

Please sign in to comment.