From f085b28a9cfcca662d8873c2bdcf87ff281f42a3 Mon Sep 17 00:00:00 2001 From: troyeguo <13820674+troyeguo@users.noreply.github.com> Date: Fri, 12 Jun 2026 09:22:31 +0800 Subject: [PATCH] Update Snapcraft action version and add environment variable for credentials --- .github/workflows/release.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5d8ea8d3..7b04a461 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,6 +6,9 @@ jobs: release: runs-on: ${{ matrix.os }} + env: + SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_TOKEN }} + # Platforms to build on/for strategy: matrix: @@ -21,12 +24,9 @@ jobs: node-version: 22 - name: Install Snapcraft - uses: samuelmeuli/action-snapcraft@v1.2.0 + uses: samuelmeuli/action-snapcraft@v3 # Only install Snapcraft on Ubuntu if: startsWith(matrix.os, 'ubuntu-22.04') - with: - # Log in to Snap Store - snapcraft_token: ${{ secrets.snapcraft_token }} - name: Install Gcc if: startsWith(matrix.os, 'ubuntu-22.04') run: |