diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9b055a5..51277b5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -209,6 +209,13 @@ jobs: ref: ${{ env.TAG }} fetch-depth: 0 + - name: Set snap version from tag + run: | + VERSION="${TAG#v}" + sed -i "s/^version: git$/version: '${VERSION}'/" snap/snapcraft.yaml + echo "Snap version: ${VERSION}" + grep '^version:' snap/snapcraft.yaml + - name: Build snap uses: snapcore/action-build@v1 id: build