Skip to content

Commit

Permalink
Build snap only for master branch
Browse files Browse the repository at this point in the history
  • Loading branch information
koppor authored Mar 4, 2020
1 parent 8fdfcfa commit 1a7a4df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 1a7a4df

Please sign in to comment.