From 8c0d3328f5d49233ea5fbb4ea3f0b0459082112a Mon Sep 17 00:00:00 2001 From: soumyadghosh Date: Thu, 31 Aug 2023 22:04:13 +0530 Subject: [PATCH] added snap workflow --- .github/workflows/snap.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 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 0000000..b2ff15d --- /dev/null +++ b/.github/workflows/snap.yml @@ -0,0 +1,32 @@ +on: + push: + branches: [ "master" ] + pull_request: + workflow_dispatch: +name: Snap +permissions: + id-token: write + contents: read +jobs: + snap: + name: "Test if the Snap can be built from the latest commit in the branch" + runs-on: ubuntu-latest + steps: + - name: Checkout Git repository + uses: actions/checkout@v3 + - name: Build Snap + uses: snapcore/action-build@v1 + id: snapcraft-build + with: + snapcraft-args: "-v" + - uses: actions/upload-artifact@v3 + with: + name: mini-text-amd64-snap + path: ${{ steps.snapcraft-build.outputs.snap }} + - name: Upload and release Mini Text snap with every changes + uses: snapcore/action-publish@v1 + env: + SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.STORE_LOGIN }} + with: + snap: ${{ steps.snapcraft-build.outputs.snap }} + release: ${{'edge'}}