Skip to content

Commit

Permalink
ci(charm): automated release to charmhub
Browse files Browse the repository at this point in the history
  • Loading branch information
jnsgruk committed Jul 26, 2023
1 parent db53ab4 commit fd78507
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/push-charm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,24 @@ concurrency:

jobs:
build-test:
uses: ./.github/workflows/build-charm.yaml
uses: ./.github/workflows/build-charm.yaml

release-to-charmhub:
name: Release to CharmHub
needs:
- build-test
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Select charmhub channel
uses: canonical/charming-actions/[email protected]
id: channel
- name: Upload charm to charmhub
uses: canonical/charming-actions/[email protected]
with:
credentials: "${{ secrets.CHARMHUB_TOKEN }}"
github-token: "${{ secrets.GITHUB_TOKEN }}"
channel: "${{ steps.channel.outputs.name }}"

0 comments on commit fd78507

Please sign in to comment.