Skip to content

Commit

Permalink
don't publish the snap if it's a pull request (#150)
Browse files Browse the repository at this point in the history
* don't publish the snap if it's a pull request

* remove unnecessary changes
  • Loading branch information
soumyaDghosh authored Mar 5, 2024
1 parent e7c85da commit 0212265
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/snap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,21 @@ jobs:
fail-fast: false
steps:
- name: Checkout Git repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: recursive
- name: Build Snap
uses: snapcore/action-build@v1
id: snapcraft-build
with:
snapcraft-args: "-v"
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: ${{ steps.snapcraft-build.outputs.snap }}
path: ${{ steps.snapcraft-build.outputs.snap }}
- name: Upload and release Cavalier Snap
uses: snapcore/action-publish@v1
if: ${{ github.event_name != 'pull_request' }}
env:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.STORE_LOGIN }}
with:
Expand Down

0 comments on commit 0212265

Please sign in to comment.