chore: fix upload-artifact actions (#4181)

* chore: fix upload-artifact actions

* copy dll files to output
This commit is contained in:
James Yeung 2024-09-10 07:27:53 +08:00 committed by GitHub
parent beb9491bb1
commit 854bb98759
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 5 additions and 4 deletions

View File

@ -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 }}

View File

@ -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/

View File

@ -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

View File

@ -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/