Skip to content

Commit 1b7f74c

Browse files
authored
Add a workflow to control Snap publications (#1176)
1 parent 50f57f8 commit 1b7f74c

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

.github/workflows/release-snap.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
on:
2+
workflow_dispatch:
3+
inputs:
4+
branch:
5+
description: "The branch, tag or SHA to release from"
6+
required: true
7+
default: "master"
8+
9+
jobs:
10+
snap:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
with:
15+
ref: ${{ github.event.inputs.branch }}
16+
- uses: snapcore/action-build@v1
17+
id: build
18+
- uses: snapcore/action-publish@v1
19+
with:
20+
store_login: ${{ secrets.SNAP_STORE_LOGIN }}
21+
snap: ${{ steps.build.outputs.snap }}
22+
release: edge

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ jobs:
1717
runs-on: ubuntu-latest
1818
steps:
1919
- uses: actions/checkout@v2
20+
with:
21+
ref: ${{ github.event.inputs.branch }}
2022
- uses: actions/setup-python@v2
2123
with:
2224
python-version: 3.9

0 commit comments

Comments
 (0)