Set snap credentials via environment
The old method of using "with" is no longer supported.
This commit is contained in:
parent
837cc75a8c
commit
156b9a99e2
|
@ -67,27 +67,30 @@ jobs:
|
||||||
path: ${{ steps.snapcraft.outputs.snap }}
|
path: ${{ steps.snapcraft.outputs.snap }}
|
||||||
- uses: snapcore/action-publish@v1
|
- uses: snapcore/action-publish@v1
|
||||||
with:
|
with:
|
||||||
store_login: ${{ secrets.SNAPCRAFT_LOGIN }}
|
|
||||||
snap: ${{ steps.snapcraft.outputs.snap }}
|
snap: ${{ steps.snapcraft.outputs.snap }}
|
||||||
release: stable
|
release: stable
|
||||||
|
env:
|
||||||
|
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_LOGIN }}
|
||||||
if: |
|
if: |
|
||||||
github.repository == 'novnc/noVNC' &&
|
github.repository == 'novnc/noVNC' &&
|
||||||
github.event_name == 'release' &&
|
github.event_name == 'release' &&
|
||||||
!github.event.release.prerelease
|
!github.event.release.prerelease
|
||||||
- uses: snapcore/action-publish@v1
|
- uses: snapcore/action-publish@v1
|
||||||
with:
|
with:
|
||||||
store_login: ${{ secrets.SNAPCRAFT_LOGIN }}
|
|
||||||
snap: ${{ steps.snapcraft.outputs.snap }}
|
snap: ${{ steps.snapcraft.outputs.snap }}
|
||||||
release: beta
|
release: beta
|
||||||
|
env:
|
||||||
|
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_LOGIN }}
|
||||||
if: |
|
if: |
|
||||||
github.repository == 'novnc/noVNC' &&
|
github.repository == 'novnc/noVNC' &&
|
||||||
github.event_name == 'release' &&
|
github.event_name == 'release' &&
|
||||||
github.event.release.prerelease
|
github.event.release.prerelease
|
||||||
- uses: snapcore/action-publish@v1
|
- uses: snapcore/action-publish@v1
|
||||||
with:
|
with:
|
||||||
store_login: ${{ secrets.SNAPCRAFT_LOGIN }}
|
|
||||||
snap: ${{ steps.snapcraft.outputs.snap }}
|
snap: ${{ steps.snapcraft.outputs.snap }}
|
||||||
release: edge
|
release: edge
|
||||||
|
env:
|
||||||
|
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_LOGIN }}
|
||||||
if: |
|
if: |
|
||||||
github.repository == 'novnc/noVNC' &&
|
github.repository == 'novnc/noVNC' &&
|
||||||
github.event_name == 'push' &&
|
github.event_name == 'push' &&
|
||||||
|
|
Loading…
Reference in New Issue