From 5ed97079b1537445c4c6adc7a5f8943f74a5af8e Mon Sep 17 00:00:00 2001 From: Jan Prochazka Date: Sat, 28 Jan 2023 13:45:43 +0100 Subject: [PATCH] fixed snapcraft login --- .github/workflows/build-app-beta.yaml | 11 +++-------- .github/workflows/build-app.yaml | 11 +++-------- 2 files changed, 6 insertions(+), 16 deletions(-) diff --git a/.github/workflows/build-app-beta.yaml b/.github/workflows/build-app-beta.yaml index 0bd99714..d48d8c5c 100644 --- a/.github/workflows/build-app-beta.yaml +++ b/.github/workflows/build-app-beta.yaml @@ -62,18 +62,13 @@ jobs: APPLE_ID: ${{ secrets.APPLE_ID }} APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }} - - name: Save snap login - if: matrix.os == 'ubuntu-18.04' - run: 'echo "$SNAPCRAFT_LOGIN" > snapcraft.login' - shell: bash - env: - SNAPCRAFT_LOGIN: ${{secrets.SNAPCRAFT_LOGIN}} - - name: publishSnap if: matrix.os == 'ubuntu-18.04' run: | - snapcraft login --with snapcraft.login + snapcraft login snapcraft upload --release=beta app/dist/*.snap + env: + SNAPCRAFT_STORE_CREDENTIALS: ${{secrets.SNAPCRAFT_LOGIN}} - name: Copy artifacts run: | diff --git a/.github/workflows/build-app.yaml b/.github/workflows/build-app.yaml index ee9a7ded..9d1d4944 100644 --- a/.github/workflows/build-app.yaml +++ b/.github/workflows/build-app.yaml @@ -72,18 +72,13 @@ jobs: run: | yarn generatePadFile - - name: Save snap login - if: matrix.os == 'ubuntu-18.04' - run: 'echo "$SNAPCRAFT_LOGIN" > snapcraft.login' - shell: bash - env: - SNAPCRAFT_LOGIN: ${{secrets.SNAPCRAFT_LOGIN}} - - name: publishSnap if: matrix.os == 'ubuntu-18.04' run: | - snapcraft login --with snapcraft.login + snapcraft login snapcraft upload --release=stable app/dist/*.snap + env: + SNAPCRAFT_STORE_CREDENTIALS: ${{secrets.SNAPCRAFT_LOGIN}} - name: Copy artifacts run: |