From 1a7a4df515ee53d39d2c12921d214de67a0c3f6a Mon Sep 17 00:00:00 2001 From: Oliver Kopp Date: Wed, 4 Mar 2020 22:08:50 +0100 Subject: [PATCH] Build snap only for master branch --- .github/workflows/deployment.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml index a46a4c7a955..bf9e0f9cc7c 100644 --- a/.github/workflows/deployment.yml +++ b/.github/workflows/deployment.yml @@ -117,11 +117,11 @@ jobs: - name: Build snap (1) Setup snapcraft uses: jhenstridge/snapcraft-build-action@v1 id: snapcraft - if: matrix.displayName == 'linux' + if: matrix.displayName == 'linux' && github.ref == 'refs/heads/master' - name: Build snap (2) Run build run: | mv ${{ steps.snapcraft.outputs.snap }} build/distribution/ - if: matrix.displayName == 'linux' + if: matrix.displayName == 'linux' && github.ref == 'refs/heads/master' - name: Build snap (3) Upload snap uses: jhenstridge/snapcraft-publish-action@v1 with: