Skip to content

Commit

Permalink
feat: [DPE-5768] - Add CI release workflow for Snap Store (#5)
Browse files Browse the repository at this point in the history
This pull request adds a new GitHub Actions workflow for releasing to
the Snap Store. The most important changes include defining the workflow
name and configuration, specifying the trigger for the workflow, and
setting up the build and release jobs.
  • Loading branch information
skourta authored Nov 19, 2024
1 parent b2cd86b commit 9f19bba
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Copyright 2024 Canonical Ltd.
# See licenses/LICENSE-snap file for licensing details.
name: Release to Snap Store

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

on:
push:
branches:
- 3.5/edge

jobs:
build:
name: Build snap
uses: canonical/data-platform-workflows/.github/workflows/[email protected]

release:
name: Release snap
needs:
- build
uses: canonical/data-platform-workflows/.github/workflows/[email protected]
with:
channel: 3.5/edge
artifact-prefix: ${{ needs.build.outputs.artifact-prefix }}
secrets:
snap-store-token: ${{ secrets.SNAP_STORE_TOKEN }}
permissions:
contents: write # Needed to create GitHub release

0 comments on commit 9f19bba

Please sign in to comment.