forked from benini/scid
-
Notifications
You must be signed in to change notification settings - Fork 3
41 lines (34 loc) · 936 Bytes
/
Copy pathsnap.yml
File metadata and controls
41 lines (34 loc) · 936 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
name: Build and Publish Snap
on:
push:
tags:
- '*'
workflow_dispatch:
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Fetch tags
run: git fetch --force --tags
- name: Build snap
uses: snapcore/action-build@v1
id: build
- name: Upload snap artifact
uses: actions/upload-artifact@v7
with:
name: snap
path: ${{ steps.build.outputs.snap }}
- name: Publish to Snapcraft Store
if: startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch'
uses: snapcore/action-publish@v1
env:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_STORE_CREDENTIALS }}
with:
snap: ${{ steps.build.outputs.snap }}
release: stable