ci: fix build to run on non-destructive mode #3
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
# Copyright 2024 Canonical Ltd. | |
# See LICENSE for licensing details. | |
name: Release to latest/edge | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
ci-tests: | |
uses: ./.github/workflows/ci.yaml | |
release-to-charmhub: | |
name: Release filesystem-client to Charmhub | |
needs: | |
- ci-tests | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Select charmhub channel | |
uses: canonical/charming-actions/[email protected] | |
id: channel | |
- name: Release updated libraries to Charmhub | |
uses: canonical/charming-actions/[email protected] | |
with: | |
credentials: "${{ secrets.CHARMCRAFT_AUTH }}" | |
github-token: "${{ secrets.GITHUB_TOKEN }}" | |
- name: Upload charm to Charmhub | |
uses: canonical/charming-actions/[email protected] | |
with: | |
credentials: "${{ secrets.CHARMCRAFT_AUTH }}" | |
github-token: "${{ secrets.GITHUB_TOKEN }}" | |
channel: "${{ steps.channel.outputs.name }}" |