Skip to content

Commit 0bd688c

Browse files
committed
feat: Automatically build and publish releases to candidate channel
1 parent 122a20b commit 0bd688c

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Snap Publish Release
2+
3+
on:
4+
push:
5+
workflow_dispatch:
6+
7+
jobs:
8+
stable:
9+
runs-on: ubuntu-24.04
10+
if: github.ref == 'refs/heads/stable' # Run only for the 'stable' branch
11+
steps:
12+
- uses: actions/checkout@v4
13+
with:
14+
fetch-depth: 0
15+
fetch-tags: true
16+
- uses: canonical/action-build@v1.3.0
17+
id: snapcraft
18+
- uses: snapcore/action-publish@v1
19+
env:
20+
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.STORE_LOGIN }}
21+
with:
22+
snap: ${{ steps.build.outputs.snap }}
23+
release: candidate

0 commit comments

Comments
 (0)