Added workflow badges (#79) #28
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 latest/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/[email protected] | |
with: | |
credentials: "${{ secrets.CHARMHUB_TOKEN }}" # FIXME: current token will expire in 2023-07-04 | |
github-token: "${{ secrets.GITHUB_TOKEN }}" | |
ci-tests: | |
uses: ./.github/workflows/ci.yaml | |
release-to-charmhub: | |
name: Release to CharmHub | |
needs: | |
- lib-check | |
- ci-tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Select charmhub channel | |
uses: canonical/charming-actions/[email protected] | |
id: channel | |
- name: Upload charm to charmhub | |
uses: canonical/charming-actions/[email protected] | |
with: | |
resource-overrides: "redis-image:3" | |
credentials: "${{ secrets.CHARMHUB_TOKEN }}" | |
github-token: "${{ secrets.GITHUB_TOKEN }}" | |
channel: "${{ steps.channel.outputs.name }}" |