@@ -137,6 +137,15 @@ jobs:
137
137
name : fedora-installer-x64
138
138
path : |
139
139
dist/JupyterLab.rpm
140
+
141
+ - name : Upload Snap Installer
142
+ if : matrix.cfg.platform == 'linux-64'
143
+ uses : actions/upload-artifact@v4
144
+ id : snap-artifact
145
+ with :
146
+ name : snap-installer
147
+ path : |
148
+ dist/JupyterLab.snap
140
149
141
150
- name : Upload macOS x64 Installer
142
151
if : matrix.cfg.platform == 'osx-64'
@@ -241,3 +250,31 @@ jobs:
241
250
asset_name : latest.yml
242
251
tag : v${{ steps.package-info.outputs.version}}
243
252
overwrite : true
253
+
254
+ - name : Upload snap installer as Release asset
255
+ if : matrix.cfg.platform == 'linux-64' && steps.release-exists.outputs.result == 'true'
256
+ uses : svenstaro/upload-release-action@v2
257
+ with :
258
+ repo_token : ${{ secrets.JLAB_APP_TOKEN }}
259
+ file : dist/JupyterLab.snap
260
+ asset_name : JupyterLab-Setup.snap
261
+ tag : v${{ steps.package-info.outputs.version}}
262
+ overwrite : true
263
+
264
+ - name : Publish snap to the latest/edge channel in Snap Store
265
+ if : matrix.cfg.platform == 'linux-64'
266
+ uses : snapcore/action-publish@v1
267
+ env :
268
+ SNAPCRAFT_STORE_CREDENTIALS : ${{ secrets.SNAPCRAFT_STORE_CREDENTIALS }}
269
+ with :
270
+ snap : dist/JupyterLab.snap
271
+ release : edge
272
+
273
+ - name : Publish snap to the latest/candidate channel in Snap Store
274
+ if : matrix.cfg.platform == 'linux-64' && steps.release-exists.outputs.result == 'true'
275
+ uses : snapcore/action-publish@v1
276
+ env :
277
+ SNAPCRAFT_STORE_CREDENTIALS : ${{ secrets.SNAPCRAFT_STORE_CREDENTIALS }}
278
+ with :
279
+ snap : dist/JupyterLab.snap
280
+ release : candidate
0 commit comments