10
10
runs-on : windows-latest
11
11
steps :
12
12
- name : Checkout Repository
13
- uses : actions/checkout@v4
13
+ uses : actions/checkout@v5
14
14
with :
15
15
submodules : true
16
16
22
22
- name : Get Environment Variables
23
23
run : |
24
24
$tag = "${{ github.ref }}" -replace 'refs/tags/', ''
25
-
26
25
"tag=$tag" | Out-File -Append -FilePath $Env:GITHUB_ENV
27
26
28
27
- name : Set up .NET
@@ -35,20 +34,25 @@ jobs:
35
34
Invoke-WebRequest -Uri https://goatcorp.github.io/dalamud-distrib/latest.zip -OutFile latest.zip
36
35
Expand-Archive -Force latest.zip -DestinationPath "$env:AppData\XIVLauncher\addon\Hooks\dev"
37
36
38
- - name : Restore Nuget Packages for Rotations
39
- run : dotnet restore RebornRotations/RebornRotations.csproj
40
- - name : Restore Nuget Packages for RSR
41
- run : dotnet restore RotationSolver/RotationSolver.csproj
37
+ - name : Restore Dependencies
38
+ run : |
39
+ dotnet restore RotationSolver/RotationSolver.csproj
40
+ dotnet restore RotationSolver.Basic /RotationSolver.Basic .csproj
42
41
43
- - name : Build Rotations
44
- run : dotnet build --no-restore -c Release RebornRotations/RebornRotations.csproj -p:AssemblyVersion=${{ env.tag }} -p:FileVersion=${{ env.tag }} -p:PackageVersion=${{ env.tag }} -p:InformationalVersion=${{ env.tag }} --output .\build
45
42
- name : Build Plugin
46
- run : dotnet build --no-restore -c Release RotationSolver/RotationSolver.csproj -p:AssemblyVersion=${{ env.tag }} -p:FileVersion=${{ env.tag }} -p:PackageVersion=${{ env.tag }} -p:InformationalVersion=${{ env.tag }} --output .\build
47
- - name : Push Nuget Package
48
- run : dotnet nuget push .\build\*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json
43
+ run : |
44
+ dotnet build --no-restore -c Release RotationSolver/RotationSolver.csproj -p:AssemblyVersion=${{ env.tag }} -p:FileVersion=${{ env.tag }} -p:PackageVersion=${{ env.tag }} -p:InformationalVersion=${{ env.tag }} --output .\build
45
+ dotnet build --no-restore -c Release RotationSolver.Basic/RotationSolver.Basic.csproj --output .\build
46
+
47
+ # Only proceed with packaging if build succeeded
48
+ - name : Create NuGet Package
49
+ run : dotnet pack -c Release RotationSolver.Basic/RotationSolver.Basic.csproj --output .\build -p:PackageVersion=${{ env.tag }}
50
+
51
+ - name : Push NuGet Package
52
+ run : dotnet nuget push .\build\*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate
49
53
50
54
- name : Zip Plugin
51
- run : Compress-Archive -Path .\build\* -DestinationPath .\build\RotationSolver.zip
55
+ run : Compress-Archive -Path .\build\RotationSolver.dll,.\build\RotationSolver.Basic.dll -DestinationPath .\build\RotationSolver.zip
52
56
53
57
- name : Publish Plugin
54
58
uses : softprops/action-gh-release@v2
@@ -61,10 +65,10 @@ jobs:
61
65
dotnet pack -c Release RotationSolver.DocumentationGenerator/RotationSolver.DocumentationGenerator.csproj
62
66
dotnet tool restore --add-source RotationSolver.DocumentationGenerator/nupkg
63
67
- name : Build Docs
64
- run : dotnet tool run docgen build/RotationSolver.Basic.xml build/RebornRotations.xml
68
+ run : dotnet tool run docgen build/RotationSolver.Basic.xml
65
69
- name : Publish Docs
66
- uses : Andrew-Chen-Wang/github-wiki-action@v4
70
+ uses : Andrew-Chen-Wang/github-wiki-action@v5
67
71
with :
68
72
token : ${{ secrets.GITHUB_TOKEN }}
69
73
path : _doc/
70
- commit-message : Update wiki to ${{ env.tag }}
74
+ commit-message : Update wiki to ${{ env.tag }}
0 commit comments