From 9d912890ab28eabea9c7fd1d4f6d9a47eabd23a2 Mon Sep 17 00:00:00 2001 From: Soumyadeep Ghosh Date: Fri, 14 Jun 2024 18:37:04 +0530 Subject: [PATCH] ci: added a build test ci for snap --- .github/workflows/snap.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/snap.yml 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 }}