1
- name : Release to latest/edge
1
+ # Copyright 2023 Canonical Ltd.
2
+ # See LICENSE file for licensing details.
3
+ name : Release to Charmhub
2
4
3
5
on :
4
6
push :
7
9
8
10
jobs :
9
11
ci-tests :
12
+ name : Tests
10
13
uses : ./.github/workflows/ci.yaml
11
14
secrets : inherit
12
15
13
- release-to-charmhub :
14
- name : Release to CharmHub
16
+ release-libraries :
17
+ name : Release libraries
15
18
needs :
16
19
- ci-tests
17
20
runs-on : ubuntu-latest
@@ -21,17 +24,26 @@ jobs:
21
24
uses : actions/checkout@v3
22
25
with :
23
26
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
28
28
uses :
canonical/charming-actions/[email protected]
29
29
with :
30
30
credentials : " ${{ secrets.CHARMHUB_TOKEN }}"
31
31
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