fix(ci): Publish snaps only for pushes in main branch

macos-click-through
Serg Tereshchenko 3 years ago
parent 01b7918538
commit e6c32b594e

@ -1,6 +1,8 @@
name: Snap name: Snap
on: [push] on:
push:
branches: [ main ]
jobs: jobs:
snap: snap:
@ -9,12 +11,12 @@ jobs:
steps: steps:
- name: Check out Git repository - name: Check out Git repository
uses: actions/checkout@v2 uses: actions/checkout@v2
- uses: snapcore/action-build@v1 - uses: snapcore/action-build@v1
env: env:
SNAPCRAFT_BUILD_ENVIRONMENT_MEMORY: 6G SNAPCRAFT_BUILD_ENVIRONMENT_MEMORY: 6G
id: snapcraft id: snapcraft
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v2
with: with:
name: snap name: snap

Loading…
Cancel
Save