refactor: Address review comments on #100 (#101) #25
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
name: Release to Edge | |
on: | |
push: | |
branches: [ main ] | |
release: | |
types: [ published ] | |
jobs: | |
check: | |
uses: ./.github/workflows/check.yaml | |
secrets: inherit | |
release: | |
needs: check | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Initialize lxd # This should dropped once it's implemented on charming-actions itself. https://github.com/canonical/charming-actions/issues/140 | |
uses: canonical/[email protected] | |
- name: Upload charm to charmhub | |
uses: canonical/charming-actions/[email protected] | |
with: | |
charmcraft-channel: "2.x/stable" | |
credentials: "${{ secrets.CHARMHUB_TOKEN }}" | |
github-token: "${{ secrets.GITHUB_TOKEN }}" | |
channel: "latest/edge" | |
# Ensure the charm is built in an isolated environment and on the correct base in an lxd container. | |
destructive-mode: false |