From 854bb98759b5f317f8ceb9d4656e6d94b5d8f4d4 Mon Sep 17 00:00:00 2001 From: James Yeung Date: Tue, 10 Sep 2024 07:27:53 +0800 Subject: [PATCH] chore: fix upload-artifact actions (#4181) * chore: fix upload-artifact actions * copy dll files to output --- .github/workflows/AntDesignDocsWebApp.yml | 4 ++-- .github/workflows/nightly-build.yml | 2 +- .github/workflows/release-AOT.yml | 1 + .github/workflows/release.yml | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/AntDesignDocsWebApp.yml b/.github/workflows/AntDesignDocsWebApp.yml index bb05fd58..7ecac8a1 100644 --- a/.github/workflows/AntDesignDocsWebApp.yml +++ b/.github/workflows/AntDesignDocsWebApp.yml @@ -56,7 +56,7 @@ jobs: - name: Publish run: dotnet publish "${{ env.WORKING_DIRECTORY }}" --configuration Release --output "${{ env.AZURE_WEBAPP_PACKAGE_PATH }}" - name: Publish Artifacts - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: webapp path: ${{ env.AZURE_WEBAPP_PACKAGE_PATH }} @@ -66,7 +66,7 @@ jobs: needs: build steps: - name: Download artifact from build job - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: webapp path: ${{ env.AZURE_WEBAPP_PACKAGE_PATH }} diff --git a/.github/workflows/nightly-build.yml b/.github/workflows/nightly-build.yml index 054f0f61..114b577a 100644 --- a/.github/workflows/nightly-build.yml +++ b/.github/workflows/nightly-build.yml @@ -114,7 +114,7 @@ jobs: next_version: ${{ steps.get_next_version.outputs.next_version }} - name: Upload package artifact - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: package path: publish/ diff --git a/.github/workflows/release-AOT.yml b/.github/workflows/release-AOT.yml index d9c171af..06cc92a1 100644 --- a/.github/workflows/release-AOT.yml +++ b/.github/workflows/release-AOT.yml @@ -67,6 +67,7 @@ jobs: dotnet build dotnet publish ./site/AntDesign.Docs.Wasm -c Release -f net8 -o cargo -p:EnableAOT=true cp -rf cargo/staticwebapp.config.json cargo/wwwroot + cp -rf ./site/AntDesign.Docs.Wasm/bin/Debug/net8/*.dll _site/wwwroot/_framework - name: Deploy to Azure 🚀 id: deploy_azure diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4d3d1a1a..34b0899b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -58,7 +58,7 @@ jobs: dotnet nuget push 'publish/*.nupkg' -s https://api.nuget.org/v3/index.json -k $NUGET_API_KEY --skip-duplicate - name: Upload package artifact - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: package path: publish/