Skip to content

Commit

Permalink
feature: snapcraft yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
mattkae committed Jan 6, 2024
1 parent f9cd09f commit b6bb49a
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/snap.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Snap

on:
push:
branches:
- master
merge_group:
types: [checks_requested]
pull_request:
types: [opened, synchronize, reopened, ready_for_review]

concurrency:
group: ${{ github.workflow }}-${{ github.event.number && format('pr{0}', github.event.number) || github.ref }}
cancel-in-progress: true

jobs:
Snap:
runs-on: ubuntu-latest

timeout-minutes: 30

steps:
- name: Check out code
uses: actions/checkout@v4
with:
fetch-depth: 0 # needed for version determination

- id: build-snap
name: Build the snap
uses: canonical/actions/build-snap@release
with:
snapcraft-channel: candidate
review-opts: "--allow-classic"

- name: Store the snap as artifact
uses: actions/upload-artifact@v4
with:
name: ${{ steps.build-snap.outputs.snap-name }}
path: ${{ steps.build-snap.outputs.snap-path }}

0 comments on commit b6bb49a

Please sign in to comment.