From b6ad314dbb7f8999f403bd6cc8815ffe390848df Mon Sep 17 00:00:00 2001 From: Mike Farah Date: Mon, 14 Nov 2022 17:28:15 +1100 Subject: [PATCH] fixing snap release --- .github/workflows/snap-release.yml | 42 +++++++++++++++--------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/.github/workflows/snap-release.yml b/.github/workflows/snap-release.yml index 531eb7c5..4a382c68 100644 --- a/.github/workflows/snap-release.yml +++ b/.github/workflows/snap-release.yml @@ -9,26 +9,26 @@ on: jobs: buildSnap: - environment: snap - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 + environment: snap + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 - - name: Get the version - id: get_version - run: echo ::set-output name=VERSION::${GITHUB_REF##*/} + - name: Get the version + id: get_version + run: echo ::set-output name=VERSION::${GITHUB_REF##*/} - - name: Update snapcraft version file - env: - VERSION: ${{ steps.get_version.outputs.VERSION }} - uses: mikefarah/yq@master - with: - cmd: yq -i '.version = strenv(VERSION)' snap/snapcraft.yaml - - uses: snapcore/action-build@v1 - id: build - - uses: snapcore/action-publish@v1 - env: - SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.STORE_LOGIN }} - with: - snap: ${{ steps.build.outputs.snap }} - release: edge \ No newline at end of file + - name: Update snapcraft version file + env: + VERSION: ${{ steps.get_version.outputs.VERSION }} + uses: mikefarah/yq@master + with: + cmd: yq -i '.version = strenv(VERSION)' snap/snapcraft.yaml + - uses: snapcore/action-build@v1 + id: build + - uses: snapcore/action-publish@v1 + env: + SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.STORE_LOGIN }} + with: + snap: ${{ steps.build.outputs.snap }} + release: edge \ No newline at end of file