[MISC] Copy fixes of DPE-2626 and DPE-2627 from k8s (#232) #146
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 | |
paths-ignore: | |
- 'tests/**' | |
- 'docs/**' | |
- renovate.json | |
- poetry.lock | |
- pyproject.toml | |
- '.github/workflows/ci.yaml' | |
jobs: | |
ci-tests: | |
name: Tests | |
uses: ./.github/workflows/ci.yaml | |
secrets: inherit | |
build: | |
name: Build charm | |
uses: canonical/data-platform-workflows/.github/workflows/build_charm_without_cache.yaml@v2 | |
release: | |
name: Release charm | |
needs: | |
- ci-tests | |
- build | |
uses: canonical/data-platform-workflows/.github/workflows/release_charm.yaml@v2 | |
with: | |
channel: 14/edge | |
artifact-name: ${{ needs.build.outputs.artifact-name }} | |
secrets: | |
charmhub-token: ${{ secrets.CHARMHUB_TOKEN }} | |
permissions: | |
contents: write # Needed to create GitHub release |