[DPE-5611] Remove cruise-control metrics reporter if no balancer (#250) #159
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 2023 Canonical Ltd. | |
# See LICENSE file for licensing details. | |
name: Release to Charmhub | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
lib-check: | |
name: Check libraries | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Check libs | |
uses: canonical/charming-actions/[email protected] | |
with: | |
credentials: "${{ secrets.CHARMHUB_TOKEN }}" # FIXME: current token will expire in 2023-07-04 | |
github-token: "${{ secrets.GITHUB_TOKEN }}" | |
ci-tests: | |
needs: | |
- lib-check | |
uses: ./.github/workflows/ci.yaml | |
secrets: inherit | |
permissions: | |
contents: write # Needed to login to Discourse | |
pull-requests: write # Need to create PR | |
actions: write | |
build: | |
name: Build charm | |
uses: canonical/data-platform-workflows/.github/workflows/[email protected] | |
with: | |
cache: false | |
release: | |
name: Release to Charmhub | |
needs: | |
- lib-check | |
- ci-tests | |
- build | |
uses: canonical/data-platform-workflows/.github/workflows/[email protected] | |
with: | |
channel: 3/edge | |
artifact-prefix: ${{ needs.build.outputs.artifact-prefix }} | |
secrets: | |
charmhub-token: ${{ secrets.CHARMHUB_TOKEN }} | |
permissions: | |
contents: write # Needed to create GitHub release |