-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (34 loc) · 1000 Bytes
/
Copy pathsnap.yml
File metadata and controls
41 lines (34 loc) · 1000 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Snap Store GitHub Actions Workflow
# Builds and publishes Snap package to Snap Store
name: Snap Release
on:
release:
types: [published]
workflow_dispatch:
jobs:
snap:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build Snap Package
uses: snapcore/action-build@v1
id: build-snap
with:
snapcraft-args: "--verbosity"
- name: Check Snap
run: |
ls -lh *.snap
snap info ${{ steps.build-snap.outputs.snap }} || true
- name: Upload Snap Artifact
uses: actions/upload-artifact@v4
with:
name: folderzipper-versioning-snap
path: ${{ steps.build-snap.outputs.snap }}
- name: Publish to Snap Store
uses: snapcore/action-publish@v1
env:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_TOKEN }}
with:
snap: ${{ steps.build-snap.outputs.snap }}
release: stable