切分模型
94
.github/workflows/nuget.yml
vendored
@@ -1,16 +1,44 @@
|
||||
name: 发布 BetterGI.Assets 到 NuGet
|
||||
name: 发布到 NuGet
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
paths:
|
||||
- 'BetterGI.Assets/**'
|
||||
- 'BetterGI.Assets.Map/**'
|
||||
- 'BetterGI.Assets.Model/**'
|
||||
- 'BetterGI.Assets.Other/**'
|
||||
workflow_dispatch: # 允许手动触发
|
||||
|
||||
jobs:
|
||||
build-and-publish:
|
||||
runs-on: windows-latest
|
||||
detect-changes:
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
map-changed: ${{ steps.changes.outputs.map }}
|
||||
model-changed: ${{ steps.changes.outputs.model }}
|
||||
other-changed: ${{ steps.changes.outputs.other }}
|
||||
steps:
|
||||
- name: 检出代码
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: 检测变更
|
||||
uses: dorny/paths-filter@v2
|
||||
id: changes
|
||||
with:
|
||||
filters: |
|
||||
map:
|
||||
- 'BetterGI.Assets.Map/**'
|
||||
model:
|
||||
- 'BetterGI.Assets.Model/**'
|
||||
other:
|
||||
- 'BetterGI.Assets.Other/**'
|
||||
|
||||
build-and-publish-map:
|
||||
needs: detect-changes
|
||||
if: needs.detect-changes.outputs.map-changed == 'true'
|
||||
runs-on: windows-latest
|
||||
|
||||
steps:
|
||||
- name: 检出代码
|
||||
uses: actions/checkout@v3
|
||||
@@ -21,13 +49,65 @@ jobs:
|
||||
dotnet-version: 8.0.x
|
||||
|
||||
- name: 还原依赖
|
||||
run: dotnet restore BetterGI.Assets\BetterGI.Assets.csproj
|
||||
run: dotnet restore BetterGI.Assets.Map\BetterGI.Assets.Map.csproj
|
||||
|
||||
- name: 构建项目
|
||||
run: dotnet build BetterGI.Assets\BetterGI.Assets.csproj --configuration Release --no-restore
|
||||
run: dotnet build BetterGI.Assets.Map\BetterGI.Assets.Map.csproj --configuration Release --no-restore
|
||||
|
||||
- name: 创建 NuGet 包
|
||||
run: dotnet pack BetterGI.Assets\BetterGI.Assets.csproj --configuration Release --no-build --output .\nupkgs
|
||||
run: dotnet pack BetterGI.Assets.Map\BetterGI.Assets.Map.csproj --configuration Release --no-build --output .\nupkgs
|
||||
|
||||
- name: 发布到 NuGet
|
||||
run: dotnet nuget push .\nupkgs\*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
|
||||
|
||||
build-and-publish-model:
|
||||
needs: detect-changes
|
||||
if: needs.detect-changes.outputs.model-changed == 'true'
|
||||
runs-on: windows-latest
|
||||
|
||||
steps:
|
||||
- name: 检出代码
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: 设置 .NET
|
||||
uses: actions/setup-dotnet@v3
|
||||
with:
|
||||
dotnet-version: 8.0.x
|
||||
|
||||
- name: 还原依赖
|
||||
run: dotnet restore BetterGI.Assets.Model\BetterGI.Assets.Model.csproj
|
||||
|
||||
- name: 构建项目
|
||||
run: dotnet build BetterGI.Assets.Model\BetterGI.Assets.Model.csproj --configuration Release --no-restore
|
||||
|
||||
- name: 创建 NuGet 包
|
||||
run: dotnet pack BetterGI.Assets.Model\BetterGI.Assets.Model.csproj --configuration Release --no-build --output .\nupkgs
|
||||
|
||||
- name: 发布到 NuGet
|
||||
run: dotnet nuget push .\nupkgs\*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
|
||||
|
||||
build-and-publish-other:
|
||||
needs: detect-changes
|
||||
if: needs.detect-changes.outputs.other-changed == 'true'
|
||||
runs-on: windows-latest
|
||||
|
||||
steps:
|
||||
- name: 检出代码
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: 设置 .NET
|
||||
uses: actions/setup-dotnet@v3
|
||||
with:
|
||||
dotnet-version: 8.0.x
|
||||
|
||||
- name: 还原依赖
|
||||
run: dotnet restore BetterGI.Assets.Other\BetterGI.Assets.Other.csproj
|
||||
|
||||
- name: 构建项目
|
||||
run: dotnet build BetterGI.Assets.Other\BetterGI.Assets.Other.csproj --configuration Release --no-restore
|
||||
|
||||
- name: 创建 NuGet 包
|
||||
run: dotnet pack BetterGI.Assets.Other\BetterGI.Assets.Other.csproj --configuration Release --no-build --output .\nupkgs
|
||||
|
||||
- name: 发布到 NuGet
|
||||
run: dotnet nuget push .\nupkgs\*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
|
||||
|
||||
BIN
BetterGI.Assets.Map/Assets/Map/Enkanomiya/Enkanomiya_0_1024.png
Normal file
|
After Width: | Height: | Size: 3.1 MiB |
|
After Width: | Height: | Size: 38 KiB |
|
After Width: | Height: | Size: 455 KiB |
@@ -0,0 +1,10 @@
|
||||
[
|
||||
{
|
||||
"LayerId": "MapBack_AbyssalPalace",
|
||||
"Floor": 0,
|
||||
"Scale": 1,
|
||||
"Name": "渊下宫",
|
||||
"Left": 2048,
|
||||
"Top": 2048
|
||||
}
|
||||
]
|
||||
BIN
BetterGI.Assets.Map/Assets/Map/Teyvat/City_102_color.webp
Normal file
|
After Width: | Height: | Size: 30 KiB |
BIN
BetterGI.Assets.Map/Assets/Map/Teyvat/City_102_gray.webp
Normal file
|
After Width: | Height: | Size: 258 KiB |
BIN
BetterGI.Assets.Map/Assets/Map/Teyvat/City_1101_color.webp
Normal file
|
After Width: | Height: | Size: 45 KiB |
BIN
BetterGI.Assets.Map/Assets/Map/Teyvat/City_1101_gray.webp
Normal file
|
After Width: | Height: | Size: 371 KiB |
BIN
BetterGI.Assets.Map/Assets/Map/Teyvat/City_1102_color.webp
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
BetterGI.Assets.Map/Assets/Map/Teyvat/City_1102_gray.webp
Normal file
|
After Width: | Height: | Size: 142 KiB |
BIN
BetterGI.Assets.Map/Assets/Map/Teyvat/City_2103_color.webp
Normal file
|
After Width: | Height: | Size: 58 KiB |
BIN
BetterGI.Assets.Map/Assets/Map/Teyvat/City_2103_gray.webp
Normal file
|
After Width: | Height: | Size: 441 KiB |
BIN
BetterGI.Assets.Map/Assets/Map/Teyvat/City_2402_color.webp
Normal file
|
After Width: | Height: | Size: 39 KiB |
BIN
BetterGI.Assets.Map/Assets/Map/Teyvat/City_2402_gray.webp
Normal file
|
After Width: | Height: | Size: 338 KiB |
BIN
BetterGI.Assets.Map/Assets/Map/Teyvat/City_3501_color.webp
Normal file
|
After Width: | Height: | Size: 27 KiB |
BIN
BetterGI.Assets.Map/Assets/Map/Teyvat/City_3501_gray.webp
Normal file
|
After Width: | Height: | Size: 237 KiB |
BIN
BetterGI.Assets.Map/Assets/Map/Teyvat/City_3511_color.webp
Normal file
|
After Width: | Height: | Size: 58 KiB |
BIN
BetterGI.Assets.Map/Assets/Map/Teyvat/City_3511_gray.webp
Normal file
|
After Width: | Height: | Size: 615 KiB |
BIN
BetterGI.Assets.Map/Assets/Map/Teyvat/City_4002_color.webp
Normal file
|
After Width: | Height: | Size: 50 KiB |
BIN
BetterGI.Assets.Map/Assets/Map/Teyvat/City_4002_gray.webp
Normal file
|
After Width: | Height: | Size: 420 KiB |
BIN
BetterGI.Assets.Map/Assets/Map/Teyvat/City_4306_color.webp
Normal file
|
After Width: | Height: | Size: 24 KiB |
BIN
BetterGI.Assets.Map/Assets/Map/Teyvat/City_4306_gray.webp
Normal file
|
After Width: | Height: | Size: 156 KiB |
BIN
BetterGI.Assets.Map/Assets/Map/Teyvat/City_4402_color.webp
Normal file
|
After Width: | Height: | Size: 21 KiB |
BIN
BetterGI.Assets.Map/Assets/Map/Teyvat/City_4402_gray.webp
Normal file
|
After Width: | Height: | Size: 161 KiB |
BIN
BetterGI.Assets.Map/Assets/Map/Teyvat/City_4502_color.webp
Normal file
|
After Width: | Height: | Size: 38 KiB |
BIN
BetterGI.Assets.Map/Assets/Map/Teyvat/City_4502_gray.webp
Normal file
|
After Width: | Height: | Size: 285 KiB |
BIN
BetterGI.Assets.Map/Assets/Map/Teyvat/City_4601_color.webp
Normal file
|
After Width: | Height: | Size: 26 KiB |
BIN
BetterGI.Assets.Map/Assets/Map/Teyvat/City_4601_gray.webp
Normal file
|
After Width: | Height: | Size: 180 KiB |
BIN
BetterGI.Assets.Map/Assets/Map/Teyvat/City_4803_color.webp
Normal file
|
After Width: | Height: | Size: 21 KiB |
BIN
BetterGI.Assets.Map/Assets/Map/Teyvat/City_4803_gray.webp
Normal file
|
After Width: | Height: | Size: 136 KiB |
BIN
BetterGI.Assets.Map/Assets/Map/Teyvat/City_504_color.webp
Normal file
|
After Width: | Height: | Size: 14 KiB |
BIN
BetterGI.Assets.Map/Assets/Map/Teyvat/City_504_gray.webp
Normal file
|
After Width: | Height: | Size: 99 KiB |
BIN
BetterGI.Assets.Map/Assets/Map/Teyvat/City_5101_color.webp
Normal file
|
After Width: | Height: | Size: 29 KiB |
BIN
BetterGI.Assets.Map/Assets/Map/Teyvat/City_5101_gray.webp
Normal file
|
After Width: | Height: | Size: 201 KiB |
BIN
BetterGI.Assets.Map/Assets/Map/Teyvat/City_5301_color.webp
Normal file
|
After Width: | Height: | Size: 27 KiB |
BIN
BetterGI.Assets.Map/Assets/Map/Teyvat/City_5301_gray.webp
Normal file
|
After Width: | Height: | Size: 194 KiB |
BIN
BetterGI.Assets.Map/Assets/Map/Teyvat/City_701_color.webp
Normal file
|
After Width: | Height: | Size: 84 KiB |
BIN
BetterGI.Assets.Map/Assets/Map/Teyvat/City_701_gray.webp
Normal file
|
After Width: | Height: | Size: 691 KiB |
|
After Width: | Height: | Size: 8.8 KiB |
|
After Width: | Height: | Size: 64 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 106 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 104 KiB |
|
After Width: | Height: | Size: 5.0 KiB |
|
After Width: | Height: | Size: 33 KiB |
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 97 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 87 KiB |
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 66 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 106 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 101 KiB |
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 67 KiB |
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 87 KiB |
|
After Width: | Height: | Size: 20 KiB |
|
After Width: | Height: | Size: 135 KiB |
|
After Width: | Height: | Size: 19 KiB |
|
After Width: | Height: | Size: 132 KiB |
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 120 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 108 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 80 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 94 KiB |
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 92 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 109 KiB |
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 93 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 106 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 101 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 119 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 106 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 96 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 74 KiB |
|
After Width: | Height: | Size: 24 KiB |
|
After Width: | Height: | Size: 158 KiB |
|
After Width: | Height: | Size: 30 KiB |
|
After Width: | Height: | Size: 234 KiB |
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 89 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 75 KiB |
|
After Width: | Height: | Size: 7.7 KiB |