Skip to content

Commit

Permalink
feat(DPE-5768): - add release workflow (#8)
Browse files Browse the repository at this point in the history
This pull request introduces a new GitHub Actions workflow to automate
the release process to the Snap Store. The most important changes
include adding licensing details, defining the workflow name and
concurrency settings, specifying the trigger conditions, and setting up
the build and release jobs.

New GitHub Actions workflow:

*
[`.github/workflows/release.yaml`](diffhunk://#diff-e426ed45842837026e10e66af23d9c7077e89eacbe6958ce7cb991130ad05adaR1-R30):
* Added licensing details, defined the workflow name as "Release to Snap
Store", and set concurrency settings to cancel in-progress runs for the
same workflow and branch.
* Specified the workflow trigger to run on pushes to the `3.5/edge`
branch.
* Added a build job using the
`canonical/data-platform-workflows/.github/workflows/[email protected]`
workflow.
* Added a release job that depends on the build job, using the
`canonical/data-platform-workflows/.github/workflows/[email protected]`
workflow, and configured it with the necessary channel, artifact prefix,
and secrets.
  • Loading branch information
skourta authored Nov 22, 2024
1 parent 7316a0c commit 7115f78
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 7115f78

Please sign in to comment.