Skip to content

Commit 7115f78

Browse files
authored
feat(DPE-5768): - add release workflow (#8)
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.
1 parent 7316a0c commit 7115f78

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/release.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Copyright 2024 Canonical Ltd.
2+
# See licenses/LICENSE-snap file for licensing details.
3+
name: Release to Snap Store
4+
5+
concurrency:
6+
group: ${{ github.workflow }}-${{ github.ref }}
7+
cancel-in-progress: true
8+
9+
on:
10+
push:
11+
branches:
12+
- 3.5/edge
13+
14+
jobs:
15+
build:
16+
name: Build snap
17+
uses: canonical/data-platform-workflows/.github/workflows/[email protected]
18+
19+
release:
20+
name: Release snap
21+
needs:
22+
- build
23+
uses: canonical/data-platform-workflows/.github/workflows/[email protected]
24+
with:
25+
channel: 3.5/edge
26+
artifact-prefix: ${{ needs.build.outputs.artifact-prefix }}
27+
secrets:
28+
snap-store-token: ${{ secrets.SNAP_STORE_TOKEN }}
29+
permissions:
30+
contents: write # Needed to create GitHub release

0 commit comments

Comments
 (0)