Skip to content

update release workflow (#23) #10

update release workflow (#23)

update release workflow (#23) #10

Workflow file for this run

# This is a template `release.yaml` file for ops charms
# This file is managed by bootstack-charms-spec and should not be modified
# within individual charm repos. https://launchpad.net/bootstack-charms-spec
name: Release to Edge
on:
push:
branches: [master, main]
concurrency:
group: release
cancel-in-progress: true
jobs:
check:
uses: ./.github/workflows/check.yaml
secrets: inherit
release:
needs: check

Check failure on line 21 in .github/workflows/release.yaml

View workflow run for this annotation

GitHub Actions / Release to Edge

Invalid workflow file

The workflow is not valid. .github/workflows/release.yaml (Line: 21, Col: 5): Required property is missing: runs-on
strategy:
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Initialize lxd # This should dropped once it's implemented on charming-actions itself. https://github.com/canonical/charming-actions/issues/140
# revision is latest main at time of writing; using because it contains a fix to https://github.com/canonical/setup-lxd/issues/19
uses: canonical/setup-lxd@2aa6f7caf7d1484298a64192f7f63a6684e648a4
- name: Pack and upload to charmhub
uses: canonical/charming-actions/upload-charm@2.6.2
with:
charmcraft-channel: "2.x/stable"
credentials: "${{ secrets.CHARMHUB_TOKEN }}"
github-token: "${{ secrets.GITHUB_TOKEN }}"
# Ensure the charm is built in an isolated environment and on the correct base in an lxd container.
destructive-mode: false