mirror of
https://github.com/HolographicHat/Yae.git
synced 2025-12-06 14:42:52 +08:00
update ci
This commit is contained in:
8
.github/workflows/dotnet.yml
vendored
8
.github/workflows/dotnet.yml
vendored
@@ -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
|
||||||
|
|||||||
17
.github/workflows/lib-nuget.yml
vendored
17
.github/workflows/lib-nuget.yml
vendored
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user