-
Notifications
You must be signed in to change notification settings - Fork 326
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upload new snap for v1.1.5 #134
Comments
thanks for contributing. Do I need to create a release or do I need to manually trigger a build? |
You'd need to manually trigger a build. You can change the release tag manually in diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml
index be8c5f2..dd81d97 100644
--- a/snap/snapcraft.yaml
+++ b/snap/snapcraft.yaml
@@ -2,7 +2,7 @@ name: gtop
summary: System monitoring dashboard for terminal
description: |
System monitoring dashboard for terminal
-version: git
+version: 1.1.5
base: core22
grade: stable And after running On a side-note, this is a little error prone because it assumes you set the right version manually which is a little tedious (in my opinion). An alternative is we can set snapcraft to pull the git source at a specific tag and build that. I personally prefer this because it also means you can't build a dirty source. If you'd prefer the version control that I just mentioned above, I can make a PR for that, the diff is pretty simple: diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml
index be8c5f2..dd81d97 100644
--- a/snap/snapcraft.yaml
+++ b/snap/snapcraft.yaml
@@ -2,7 +2,7 @@ name: gtop
summary: System monitoring dashboard for terminal
description: |
System monitoring dashboard for terminal
-version: git
+version: 1.1.5
base: core22
grade: stable
@@ -14,7 +14,9 @@ apps:
parts:
gtop:
- source: .
+ source: https://github.com/aksakalli/gtop
+ source-type: git
+ source-tag: v1.1.5
plugin: npm
npm-include-node: true
npm-node-version: "17.3.0" This of course means that when you create a new release tag and want to publish the snap, the |
Is there a way to automate this with Github Actions or something, if not please feel free to send a PR. If the version is set as |
I honestly haven't messed around with github actions too much, but I would imagine it could be done. I would say it depends how often you plan on updating package to see if it's worth setting that up. The |
PR to pin 1.1.5 - #135 Also found a handy variable during the snap build |
Thanks for merging the snapcraft update! (#132)
Could the latest version be uploaded to snapcraft?
The text was updated successfully, but these errors were encountered: