Skip to content

Commit ecf822e

Browse files
committed
Try to build snapcraft image also on master-release
1 parent 29ed8fe commit ecf822e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/deployment.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -109,18 +109,18 @@ jobs:
109109
- name: Build snap (1) Setup snapcraft
110110
uses: jhenstridge/snapcraft-build-action@v1
111111
id: snapcraft
112-
if: matrix.displayName == 'linux' && github.ref == 'refs/heads/master'
112+
if: matrix.displayName == 'linux' && startsWith(github.ref,'refs/heads/master')
113113
- name: Build snap (2) Run build
114114
run: |
115115
mv ${{ steps.snapcraft.outputs.snap }} build/distribution/
116-
if: matrix.displayName == 'linux' && github.ref == 'refs/heads/master'
116+
if: matrix.displayName == 'linux' && startsWith(github.ref,'refs/heads/master')
117117
- name: Build snap (3) Upload snap
118118
uses: jhenstridge/snapcraft-publish-action@v1
119119
with:
120120
store_login: ${{ secrets.SNAPCRAFT_LOGIN_FILE }}
121121
snap: build/distribution/jabref*.snap
122122
release: edge
123-
if: matrix.displayName == 'linux' && github.ref == 'refs/heads/master'
123+
if: matrix.displayName == 'linux' && startsWith(github.ref,'refs/heads/master')
124124
- name: Rename files
125125
run: |
126126
get-childitem -Path build/distribution/* | rename-item -NewName {$_.name -replace "${{ steps.gitversion.outputs.AssemblySemVer }}","${{ steps.gitversion.outputs.Major }}.${{ steps.gitversion.outputs.Minor }}"}

0 commit comments

Comments
 (0)