Skip to content

Commit 824b473

Browse files
Use release_charm.yaml and release to 14/edge (#130)
1 parent d0acd10 commit 824b473

File tree

1 file changed

+25
-13
lines changed

1 file changed

+25
-13
lines changed

.github/workflows/release.yaml

Lines changed: 25 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
name: Release to latest/edge
1+
# Copyright 2023 Canonical Ltd.
2+
# See LICENSE file for licensing details.
3+
name: Release to Charmhub
24

35
on:
46
push:
@@ -7,11 +9,12 @@ on:
79

810
jobs:
911
ci-tests:
12+
name: Tests
1013
uses: ./.github/workflows/ci.yaml
1114
secrets: inherit
1215

13-
release-to-charmhub:
14-
name: Release to CharmHub
16+
release-libraries:
17+
name: Release libraries
1518
needs:
1619
- ci-tests
1720
runs-on: ubuntu-latest
@@ -21,17 +24,26 @@ jobs:
2124
uses: actions/checkout@v3
2225
with:
2326
fetch-depth: 0
24-
- name: Select charmhub channel
25-
uses: canonical/charming-actions/[email protected]
26-
id: channel
27-
- name: Release any bumped charm libs
27+
- name: Release charm libraries
2828
uses: canonical/charming-actions/[email protected]
2929
with:
3030
credentials: "${{ secrets.CHARMHUB_TOKEN }}"
3131
github-token: "${{ secrets.GITHUB_TOKEN }}"
32-
- name: Upload charm to charmhub
33-
uses: canonical/charming-actions/[email protected]
34-
with:
35-
credentials: "${{ secrets.CHARMHUB_TOKEN }}"
36-
github-token: "${{ secrets.GITHUB_TOKEN }}"
37-
channel: "${{ steps.channel.outputs.name }}"
32+
33+
build:
34+
name: Build charm
35+
uses: canonical/data-platform-workflows/.github/workflows/build_charm_without_cache.yaml@v2
36+
37+
release:
38+
name: Release charm
39+
needs:
40+
- ci-tests
41+
- build
42+
uses: canonical/data-platform-workflows/.github/workflows/release_charm.yaml@v2
43+
with:
44+
channel: 14/edge
45+
artifact-name: ${{ needs.build.outputs.artifact-name }}
46+
secrets:
47+
charmhub-token: ${{ secrets.CHARMHUB_TOKEN }}
48+
permissions:
49+
contents: write # Needed to create GitHub release

0 commit comments

Comments
 (0)