diff --git a/.github/workflows/_charm-release.yaml b/.github/workflows/_charm-release.yaml index 9c027ac6..527925b1 100644 --- a/.github/workflows/_charm-release.yaml +++ b/.github/workflows/_charm-release.yaml @@ -39,10 +39,11 @@ jobs: if: ${{ inputs.artifact != '' }} - name: Build charm(s) run: | + sudo snap install charmcraft --classic charmcraft pack --project-dir ${{ inputs.charm_path }} CHARMS=$(ls ./*.charm | jq -R -s -c 'split("\n")[:-1]') echo "charms=$CHARMS" >> "$GITHUB_OUTPUT" - name: Store charms - uses: actions/upload-artifacts@v3 + uses: actions/upload-artifact@v3 with: name: charms path: ./*.charm