Skip to content

Commit

Permalink
ci: add snap workflow (#828)
Browse files Browse the repository at this point in the history
Adds a snapcraft workflow to the CI that runs on pushes and pull
requests to `snap/**` branches.
I'd also add this to the other `snap/**` branches.
  • Loading branch information
d-loose authored Sep 27, 2024
2 parents d064d37 + 105b515 commit 96b84ce
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/snap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Snap

on:
push:
branches:
- snap/**
pull_request:
branches:
- snap/**
workflow_dispatch:

jobs:
snap:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: snapcore/action-build@v1
with:
snapcraft-channel: 7.x
id: snapcraft
- uses: actions/upload-artifact@v4
if: github.event_name == 'workflow_dispatch'
with:
name: 'snap'
path: ${{steps.snapcraft.outputs.snap}}

0 comments on commit 96b84ce

Please sign in to comment.