Skip to content

Commit

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

* update deps
  • Loading branch information
soumyaDghosh authored Mar 5, 2024
1 parent 0500ac3 commit 2d99c65
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: denaro-amd64-snap
path: ${{ steps.snapcraft-build.outputs.snap }}
- name: Upload and release Denaro 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 2d99c65

Please sign in to comment.