Fixing versioning code for release

This commit is contained in:
Mike Farah
2022-11-15 20:08:58 +11:00
parent fd35530f35
commit a6d1a52e33
6 changed files with 46 additions and 19 deletions
-11
View File
@@ -13,17 +13,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Get the version
id: get_version
run: echo "VERSION=${GITHUB_REF##*/}" >> "${GITHUB_OUTPUT}"
- 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