Skip to content

Commit 7f3b997

Browse files
committed
feat: add snap publishing
1 parent b77da17 commit 7f3b997

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

.github/workflows/release.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,25 @@ jobs:
4040
with:
4141
name: mac-builds
4242
path: dist/
43+
44+
build_and_publish_snap:
45+
runs-on: ubuntu-latest
46+
if: github.ref == 'refs/heads/master'
47+
steps:
48+
- name: update apt
49+
run: sudo apt-get update
50+
- name: Install libarchive-tools
51+
run: sudo apt-get install -y libarchive-tools
52+
- uses: actions/checkout@master
53+
- uses: actions/setup-node@master
54+
with:
55+
node-version: 24.12.0
56+
- run: npm install
57+
- run: npm run build-snap
58+
- name: Publish to Snap Store
59+
uses: canonical/action-publish@v1
60+
env:
61+
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_STORE_CREDENTIALS }}
62+
with:
63+
snap: dist/tidal-hifi_*.snap
64+
release: stable

.vscode/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
"seekbackward",
3838
"seekforward",
3939
"seekto",
40+
"SNAPCRAFT",
4041
"throughs",
4142
"trackid",
4243
"tracklist",

0 commit comments

Comments
 (0)