Skip to content

Commit

Permalink
Try to build snapcraft image also on master-release
Browse files Browse the repository at this point in the history
  • Loading branch information
koppor committed Mar 4, 2020
1 parent 29ed8fe commit ecf822e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,18 +109,18 @@ jobs:
- name: Build snap (1) Setup snapcraft
uses: jhenstridge/snapcraft-build-action@v1
id: snapcraft
if: matrix.displayName == 'linux' && github.ref == 'refs/heads/master'
if: matrix.displayName == 'linux' && startsWith(github.ref,'refs/heads/master')
- name: Build snap (2) Run build
run: |
mv ${{ steps.snapcraft.outputs.snap }} build/distribution/
if: matrix.displayName == 'linux' && github.ref == 'refs/heads/master'
if: matrix.displayName == 'linux' && startsWith(github.ref,'refs/heads/master')
- name: Build snap (3) Upload snap
uses: jhenstridge/snapcraft-publish-action@v1
with:
store_login: ${{ secrets.SNAPCRAFT_LOGIN_FILE }}
snap: build/distribution/jabref*.snap
release: edge
if: matrix.displayName == 'linux' && github.ref == 'refs/heads/master'
if: matrix.displayName == 'linux' && startsWith(github.ref,'refs/heads/master')
- name: Rename files
run: |
get-childitem -Path build/distribution/* | rename-item -NewName {$_.name -replace "${{ steps.gitversion.outputs.AssemblySemVer }}","${{ steps.gitversion.outputs.Major }}.${{ steps.gitversion.outputs.Minor }}"}
Expand Down

0 comments on commit ecf822e

Please sign in to comment.