[DPE-2528] Update libraries on K8s charm so charm uses data_interface… #59
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 5/edge | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
lib-check: | |
name: Check libraries | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Check libs | |
uses: canonical/charming-actions/check-libraries@2.3.0 | |
with: | |
# FIXME: CHARMHUB_TOKEN will expire in 2024-01-20 | |
# NOTE: CHARMHUB_TOKEN is only allowed in latest/edge, latest/candidate | |
credentials: "${{ secrets.CHARMHUB_TOKEN }}" | |
github-token: "${{ secrets.GITHUB_TOKEN }}" | |
ci-tests: | |
needs: | |
- lib-check | |
uses: ./.github/workflows/ci.yaml | |
release-to-charmhub: | |
name: Release to CharmHub | |
needs: | |
- lib-check | |
- ci-tests | |
runs-on: ubuntu-latest | |
timeout-minutes: 60 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Upload charm to charmhub | |
uses: canonical/charming-actions/upload-charm@2.3.0 | |
with: | |
credentials: "${{ secrets.CHARMHUB_TOKEN }}" | |
github-token: "${{ secrets.GITHUB_TOKEN }}" | |
channel: "5/edge" |