Skip to content

ci: refactor using data platform workflows (#665) #165

ci: refactor using data platform workflows (#665)

ci: refactor using data platform workflows (#665) #165

Workflow file for this run

name: Release to Charmhub
on:
push:
branches:
- main
- track/**
jobs:
ci-tests:
uses: ./.github/workflows/ci.yaml
secrets: inherit
release:
strategy:
matrix:
charm: ${{ fromJSON(needs.ci-tests.outputs.charm-paths) }}
name: Release charm | ${{ matrix.charm }}
needs:
- ci-tests
uses: canonical/data-platform-workflows/.github/workflows/[email protected]
with:
channel: ${{ needs.ci-tests.outputs.channel }}
artifact-prefix: ${{ needs.ci-tests.outputs.artifact-prefix }}
path-to-charm-directory: ${{ matrix.charm }}
secrets:
charmhub-token: ${{ secrets.CHARMCRAFT_CREDENTIALS }}
permissions:
contents: write # Needed to create git tags