From 8fdfcfa7760ed56c00fc561663443dfa34003cd9 Mon Sep 17 00:00:00 2001 From: Galileo Sartor Date: Wed, 4 Mar 2020 16:40:10 +0100 Subject: [PATCH] Use github action to publish snap --- .github/workflows/deployment.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml index 6f41ae6ee8e..a46a4c7a955 100644 --- a/.github/workflows/deployment.yml +++ b/.github/workflows/deployment.yml @@ -123,13 +123,12 @@ jobs: mv ${{ steps.snapcraft.outputs.snap }} build/distribution/ if: matrix.displayName == 'linux' - 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' - env: - SNAPCRAFT_LOGIN_FILE: ${{ secrets.SNAPCRAFT_LOGIN_FILE }} - run: | - mkdir .snapcraft && echo ${SNAPCRAFT_LOGIN_FILE} | base64 --decode --ignore-garbage > .snapcraft/snapcraft.cfg - snapcraft push build/distribution/jabref*.snap --release edge || true - shell: bash - 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 }}"}