From ba96069a9b222b14e6fa7b81a21a524e044778c0 Mon Sep 17 00:00:00 2001 From: Sunwuyuan Date: Sun, 30 Nov 2025 13:48:11 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E4=BC=98=E5=8C=96=20Azure=20=E5=B7=A5?= =?UTF-8?q?=E4=BD=9C=E6=B5=81=E9=85=8D=E7=BD=AE=EF=BC=8C=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E7=8E=AF=E5=A2=83=E5=8F=98=E9=87=8F=E5=92=8C=E6=A0=BC=E5=BC=8F?= =?UTF-8?q?=E5=8C=96=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...azure-static-web-apps-icy-river-041d8ab00.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/azure-static-web-apps-icy-river-041d8ab00.yml b/.github/workflows/azure-static-web-apps-icy-river-041d8ab00.yml index 31ef20a..15d9cf5 100644 --- a/.github/workflows/azure-static-web-apps-icy-river-041d8ab00.yml +++ b/.github/workflows/azure-static-web-apps-icy-river-041d8ab00.yml @@ -22,8 +22,10 @@ jobs: with: submodules: true lfs: false + - name: Install OIDC Client from Core Package run: npm install @actions/core@1.6.0 @actions/http-client + - name: Get Id Token uses: actions/github-script@v6 id: idtoken @@ -32,17 +34,19 @@ jobs: const coredemo = require('@actions/core') return await coredemo.getIDToken() result-encoding: string + - name: Build And Deploy id: builddeploy uses: Azure/static-web-apps-deploy@v1 + env: + NODE_VERSION: 20 # 👈 Force Node.js 20.x instead of Oryx default (18.x) with: azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_ICY_RIVER_041D8AB00 }} action: "upload" - ###### Repository/Build Configurations - These values can be configured to match your app requirements. ###### - # For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig - app_location: "/" # App source code path - api_location: "" # Api source code path - optional - output_location: "dist" # Built app content directory - optional + ###### Repository/Build Configurations ###### + app_location: "/" + api_location: "" + output_location: "dist" github_id_token: ${{ steps.idtoken.outputs.result }} ###### End of Repository/Build Configurations ###### @@ -55,4 +59,4 @@ jobs: id: closepullrequest uses: Azure/static-web-apps-deploy@v1 with: - action: "close" + action: "close" \ No newline at end of file