Skip to content

Commit 5896f54

Browse files
committed
Update Snap name to glance-optimizer and add build workflow
1 parent a5b8dd4 commit 5896f54

2 files changed

Lines changed: 31 additions & 1 deletion

File tree

.github/workflows/snap.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Snapcraft Build and Release
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
paths:
7+
- 'packaging/snap/**'
8+
release:
9+
types: [published]
10+
workflow_dispatch:
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- name: Build Snap
19+
uses: snapcore/action-build@v1
20+
id: build
21+
with:
22+
path: packaging/snap/
23+
24+
- name: Publish Snap
25+
uses: snapcore/action-publish@v1
26+
env:
27+
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_TOKEN }}
28+
with:
29+
snap: ${{ steps.build.outputs.snap }}
30+
release: stable

packaging/snap/snapcraft.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: glance
1+
name: glance-optimizer
22
base: core24
33
version: '0.1.0'
44
summary: A beautiful, modern Linux system optimizer

0 commit comments

Comments
 (0)