Skip to content

Commit

Permalink
Adds "publish-charm" job
Browse files Browse the repository at this point in the history
  • Loading branch information
mz2 committed Jul 2, 2023
1 parent 63f4d6f commit acf47ce
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/frontend_charm_integration_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,29 @@ jobs:
defaults:
run:
working-directory: ./frontend/charm

publish-charm:
name: Publish Charm
needs: integration-test
runs-on: ubuntu-22.04
if: ${{ github.ref_name == 'main' }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install charmcraft
run: sudo snap install charmcraft --classic
- name: Fetch Tested Charm
uses: actions/download-artifact@v3
with:
name: tested-charm
- name: Move charm in current directory
run: find ./ -name test-observer-frontend_ubuntu-22.04-amd64.charm -exec mv -t ./ {} \;
- 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_AUTH_API }}"
github-token: "${{ secrets.GITHUB_TOKEN }}"
channel: "${{ steps.channel.outputs.name }}"

0 comments on commit acf47ce

Please sign in to comment.