Skip to content

Commit

Permalink
Merge pull request #12 from soumyaDghosh/workflow-snap
Browse files Browse the repository at this point in the history
added snap workflow
  • Loading branch information
Nokse22 authored Aug 31, 2023
2 parents dbf74e6 + 8c0d332 commit c74bb96
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/snap.yml
Original file line number Diff line number Diff line change
@@ -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'}}

0 comments on commit c74bb96

Please sign in to comment.