diff --git a/.github/workflows/snap.yml b/.github/workflows/snap.yml new file mode 100644 index 00000000..d89c5eb8 --- /dev/null +++ b/.github/workflows/snap.yml @@ -0,0 +1,21 @@ +name: Build test Amber Snap +on: + push: + branches: + - master + pull_request: + workflow_dispatch: + +jobs: + snap: + name: Build snap + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: snapcore/action-build@v1 + id: snapcraft + - uses: actions/upload-artifact@v4 + if: ${{ github.event_name == 'release' }} #uploads the snap only if it's a release + with: + name: amber-snap + path: ${{ steps.snapcraft.outputs.snap }}