name: snap on: push: branches: - main jobs: build: runs-on: ubuntu-latest concurrency: group: snap-build cancel-in-progress: true steps: - uses: actions/checkout@v3 with: fetch-depth: 0 - uses: snapcore/action-build@v1 id: build-snap # Make sure the snap is installable - run: | sudo apt -y remove sosreport sudo snap install --classic --dangerous ${{ steps.build-snap.outputs.snap }} # Do some testing with the snap - run: | /snap/bin/sos help - uses: snapcore/action-publish@v1 env: SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.STORE_LOGIN }} with: snap: ${{ steps.build-snap.outputs.snap }} release: "latest/edge"