Workflow file: release_snap.yaml
Add .yaml
file to .github/workflows/
# Copyright 2024 Canonical Ltd.
# See LICENSE file for licensing details.
name: Release to Snap Store
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
push:
branches:
- main
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: latest/edge
artifact-prefix: ${{ needs.build.outputs.artifact-prefix }}
secrets:
snap-store-token: ${{ secrets.SNAP_STORE_TOKEN }}
permissions:
contents: write # Needed to create GitHub release
SNAP_STORE_TOKEN
should be generated with SNAPCRAFT_STORE_AUTH=candid
(e.g. SNAPCRAFT_STORE_AUTH=candid snapcraft export-login
)