Skip to content

Commit

Permalink
Upload charm to latest/edge when main branch is updated
Browse files Browse the repository at this point in the history
  • Loading branch information
saltiyazan committed Oct 3, 2024
1 parent ab90f24 commit d8c967d
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/publish-charm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,17 @@ jobs:
id: charm-path
run: echo "charm_path=$(find . -name '*.charm' -type f -print)" >> $GITHUB_OUTPUT

- name: Upload charm to Charmhub
- name: Upload the charm to Charmhub's latest track
# This workflow should only run on the main branch.
if: github.ref_name == 'main'
uses: canonical/charming-actions/[email protected]
with:
built-charm-path: ${{ steps.charm-path.outputs.charm_path }}
credentials: "${{ secrets.CHARMCRAFT_AUTH }}"
github-token: "${{ secrets.GITHUB_TOKEN }}"
channel: latest/edge

- name: Upload the charm to Charmhub's 1.16/edge track
uses: canonical/charming-actions/[email protected]
with:
built-charm-path: ${{ steps.charm-path.outputs.charm_path }}
Expand Down

0 comments on commit d8c967d

Please sign in to comment.