fix: use env variable instead of login option (#1128)

This commit is contained in:
Baptiste Augrain
2022-06-16 12:20:10 +02:00
committed by GitHub
parent 79a9f4a292
commit c4583ad3f0
2 changed files with 3 additions and 4 deletions

View File

@@ -116,7 +116,7 @@ jobs:
run: ./stores/snapcraft/check_version.sh
env:
ARCHITECTURE: ${{ matrix.platform }}
SNAP_STORE_LOGIN: ${{ secrets.SNAP_STORE_LOGIN }}
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAP_STORE_LOGIN }}
# - uses: docker/setup-qemu-action@v1
# if: env.SHOULD_DEPLOY == 'yes'
@@ -142,7 +142,8 @@ jobs:
- uses: snapcore/action-publish@v1
with:
store_login: ${{ secrets.SNAP_STORE_LOGIN }}
snap: ${{ steps.build.outputs.snap }}
release: stable
env:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAP_STORE_LOGIN }}
if: env.SHOULD_DEPLOY == 'yes'