update ci

This commit is contained in:
HolographicHat
2025-08-03 14:13:08 +08:00
parent d514f3b5e7
commit 45638b7327
2 changed files with 13 additions and 12 deletions

View File

@@ -28,12 +28,12 @@ jobs:
- name: Upload-AOT - name: Upload-AOT
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: Artifacts-AOT name: aot
path: publish\publish path: YaeAchievement\publish\publish
- name: Publish-NoAOT - name: Publish-NoAOT
run: dotnet publish --property:OutputPath=.\naot-publish\ --property:PublishAot=false --property:PublishSingleFile=true --property:PublishTrimmed=true run: dotnet publish --property:OutputPath=.\naot-publish\ --property:PublishAot=false --property:PublishSingleFile=true --property:PublishTrimmed=true
- name: Upload-NoAOT - name: Upload-NoAOT
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: Artifacts-NoAOT name: normal
path: naot-publish\publish path: YaeAchievement\naot-publish\publish

View File

@@ -15,15 +15,16 @@ jobs:
run: run:
working-directory: ./YaeAchievementLib working-directory: ./YaeAchievementLib
steps: steps:
- name: Checkout Repo - uses: actions/checkout@v4
uses: actions/checkout@v4 - uses: actions/setup-dotnet@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with: with:
dotnet-version: 9.0.x dotnet-version: 9.0.x
- name: Restore dependencies - name: Build native library
run: dotnet restore
- name: Build
run: dotnet publish run: dotnet publish
- name: Publish to NuGet - name: Publish to NuGet
run: nuget push .\bin\Release\*.nupkg ${{ secrets.NUGET_API_KEY }} -src https://api.nuget.org/v3/index.json run: nuget push bin\Release\*.nupkg ${{ secrets.NUGET_API_KEY }} -src https://api.nuget.org/v3/index.json
- name: Upload nuget package
uses: actions/upload-artifact@v4
with:
name: nupkg
path: bin\Release\*.nupkg