Revert: Remove metadata fields from snapcraft.yaml #13
This file contains hidden or 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: Snapcraft Build and Release | |
| on: | |
| push: | |
| branches: [ "master" ] | |
| paths: | |
| - 'packaging/snap/**' | |
| release: | |
| types: [published] | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| # Setup LXD specifically for Snapcraft | |
| - name: Setup LXD | |
| uses: snapcore/action-build@v1 | |
| id: build | |
| with: | |
| path: packaging/snap/ | |
| snapcraft-args: "--use-lxd" | |
| - name: Publish Snap | |
| uses: snapcore/action-publish@v1 | |
| env: | |
| SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_TOKEN }} | |
| with: | |
| snap: ${{ steps.build.outputs.snap }} | |
| release: stable |