-
Notifications
You must be signed in to change notification settings - Fork 96
47 lines (41 loc) · 1.17 KB
/
build-snap.yml
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
42
43
44
45
46
47
name: Build snap package
on:
workflow_dispatch:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
with:
repository: 'smplayer-dev/snap-builds'
- name: Build snap
id: snapcraft
uses: snapcore/action-build@v1
with:
path: smplayer/core22
- name: Create artifact
#if: github.event_name != 'release'
if: ${{false}}
uses: actions/upload-artifact@v2
with:
name: smplayer-snap
path: ${{ steps.snapcraft.outputs.snap }}
- name: Publish
uses: snapcore/action-publish@v1
env:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.STORE_LOGIN }}
with:
snap: ${{steps.snapcraft.outputs.snap }}
release: edge
- name: Upload package to release
if: github.event_name == 'release'
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{ steps.snapcraft.outputs.snap }}
tag: ${{ github.ref }}
overwrite: true
file_glob: true