feat(DPE-5768): - add release workflow (#8) #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |