Update Publish Snap workflow

This commit is contained in:
JonnyWong16 2020-12-17 18:44:29 -08:00
parent 393f4e0e58
commit b74ca2670e
No known key found for this signature in database
GPG key ID: B1F1F9807184697A

View file

@ -40,8 +40,8 @@ jobs:
uses: docker/setup-qemu-action@v1 uses: docker/setup-qemu-action@v1
- name: Build Snap Package - name: Build Snap Package
id: build
uses: diddlesnaps/snapcraft-multiarch-action@v1 uses: diddlesnaps/snapcraft-multiarch-action@v1
id: build
with: with:
architecture: ${{ matrix.architecture }} architecture: ${{ matrix.architecture }}
@ -57,10 +57,10 @@ jobs:
snap: ${{ steps.build.outputs.snap }} snap: ${{ steps.build.outputs.snap }}
- name: Publish Snap Package - name: Publish Snap Package
uses: snapcore/action-publish@v1
if: > if: >
github.event_name != 'pull_request' && github.event_name != 'pull_request' &&
(startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/nightly') (startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/nightly')
uses: snapcore/action-publish@v1
with: with:
store_login: ${{ secrets.SNAP_LOGIN }} store_login: ${{ secrets.SNAP_LOGIN }}
snap: ${{ steps.build.outputs.snap }} snap: ${{ steps.build.outputs.snap }}