From 876e26d5606e276436e5604fb30da5523d203dbd Mon Sep 17 00:00:00 2001 From: Dmitry Ratushnyy <132273757+dmitry-ratushnyy@users.noreply.github.com> Date: Thu, 2 Nov 2023 13:42:32 +0100 Subject: [PATCH] Fix release workflow (#294) ## Issue Current release workflow do not release the libraries ## Solution Update the release workflow to fix the issue --- .github/workflows/release.yaml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 9e7b9790c..fa5e48924 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -17,7 +17,7 @@ jobs: build: name: Build charm - uses: canonical/data-platform-workflows/.github/workflows/build_charm_without_cache.yaml@v5 + uses: canonical/data-platform-workflows/.github/workflows/build_charm_without_cache.yaml@v5.1.2 with: charmcraft-snap-channel: "latest/stable" @@ -34,3 +34,20 @@ jobs: charmhub-token: ${{ secrets.CHARMHUB_TOKEN }} permissions: contents: write # Needed to create GitHub release + + release-libraries: + name: Release libraries + runs-on: ubuntu-latest + needs: + - ci-tests + - release-charm + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: Release any bumped charm libs + uses: canonical/charming-actions/release-libraries@2.2.2 + with: + credentials: "${{ secrets.CHARMHUB_TOKEN }}" + github-token: "${{ secrets.GITHUB_TOKEN }}"