Skip to content

Commit

Permalink
Use automatic version when building snap directly
Browse files Browse the repository at this point in the history
Make it easier to build a snap from your working copy by removing the
restriction of having to modify the version field first.
  • Loading branch information
CendioOssman committed Sep 14, 2022
1 parent 69e0f0f commit d5b8425
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
- run: |
VERSION=$(grep '"version"' package.json | cut -d '"' -f 4)
echo $VERSION
sed -i "s/@VERSION@/$VERSION/g" snap/snapcraft.yaml
sed -i "s/^version:.*/version: '$VERSION'/" snap/snapcraft.yaml
- uses: snapcore/action-build@v1
id: snapcraft
- uses: actions/upload-artifact@v2
Expand Down
2 changes: 1 addition & 1 deletion snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: novnc
base: core18 # the base snap is the execution environment for this snap
version: '@VERSION@'
version: git
summary: Open Source VNC client using HTML5 (WebSockets, Canvas)
description: |
Open Source VNC client using HTML5 (WebSockets, Canvas).
Expand Down

0 comments on commit d5b8425

Please sign in to comment.