Can't release snap because it says it's devmode, but it's not

I can’t release the revision because it says it’s dev mode:
https://dashboard.snapcraft.io/snaps/powershell-preview/revisions/54/
Here is the message:
image
But even the dashboard says it’s classic:
image

Installed using sudo snap install powershell-preview --classic --beta and verified snap info --verbose powershell-preview:
image

While the confinement is indeed classic, not devmode, the grade attribute is set to devel which I believe is what’s actually blocking your release.

The message from the storefront about the snap being devmode does seem to be inaccurate.

Please update your snapcraft.yaml and remove the grade or set it to stable, then you will be able to publish to candidate or stable.

1 Like

It was set to stable in this build: https://github.com/PowerShell/PowerShell-Snap/blob/c5d25efcaf95d5fd0323db681b1fa875689e5c7e/preview/snap/snapcraft.yaml#L5

I found the problem later in the yaml