mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-04 15:39:43 +00:00
fix snapcraft version
This commit is contained in:
6
.github/workflows/snapcraft-release.yml
vendored
6
.github/workflows/snapcraft-release.yml
vendored
@@ -11,9 +11,9 @@ jobs:
|
||||
- name: snapcraft setup
|
||||
run: |
|
||||
pwd
|
||||
cp "${GITHUB_WORKSPACE}/packages/snap/snapcraft.yaml" "${GITHUB_WORKSPACE}/snapcraft.yaml"
|
||||
sed -i 's#source: ../../#source: \.#g' "${GITHUB_WORKSPACE}/snapcraft.yaml"
|
||||
cat "${GITHUB_WORKSPACE}/snapcraft.yaml"
|
||||
cp -r "./packages/snap" "."
|
||||
sed -i 's#source: ../../#source: \.#g' "./snap/snapcraft.yaml"
|
||||
cat "./snapcraft.yaml"
|
||||
- uses: snapcore/action-build@v1
|
||||
id: build
|
||||
- uses: snapcore/action-publish@v1
|
||||
|
||||
3
packages/snap/snapcraft.yaml
vendored
3
packages/snap/snapcraft.yaml
vendored
@@ -40,4 +40,7 @@ parts:
|
||||
plugin: nil
|
||||
override-build: |
|
||||
VERSION=$(git describe --abbrev=0 --tags | sed 's/^v//g')
|
||||
if [ -z ${VERSION} ]; then
|
||||
VERSION=$(cat dotdrop/version.py | grep version | sed 's/^.*= .\(.*\).$/\1/g')
|
||||
fi
|
||||
snapcraftctl set-version "${VERSION}"
|
||||
|
||||
Reference in New Issue
Block a user