-
-
Notifications
You must be signed in to change notification settings - Fork 40
34 lines (34 loc) · 937 Bytes
/
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
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
types: [ "review_requested", "ready_for_review" ]
workflow_dispatch:
name: Snap
permissions:
id-token: write
contents: read
jobs:
gnome-snap:
name: "GNOME on Snap"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
uses: snapcore/action-build@v1
id: snapcraft-build
with:
snapcraft-args: "-v"
- uses: actions/upload-artifact@v4
with:
name: application-snap
path: ${{ steps.snapcraft-build.outputs.snap }}
- name: Upload and Release Edge
uses: snapcore/action-publish@v1
if: ${{ github.event.pull_request.head.ref == 'main' }}
env:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.STORE_LOGIN }}
with:
snap: ${{ steps.snapcraft-build.outputs.snap }}
release: ${{'edge'}}