1818 gh-page-destination-directory :
1919 type : string
2020 description : The destination directory for the WASM application.
21- default :
21+ default :
2222
2323jobs :
2424 build-test-publish :
@@ -29,10 +29,10 @@ jobs:
2929 contents : write
3030
3131 steps :
32- - uses : actions/checkout@v3
32+ - uses : actions/checkout@v4
3333
3434 - name : 📦 setup .NET
35- uses : actions/setup-dotnet@v3
35+ uses : actions/setup-dotnet@v4
3636
3737 - name : ⚙️ restore workloads
3838 run : dotnet workload restore Spillgebees.Blazor.RichTextEditor.sln
@@ -42,31 +42,23 @@ jobs:
4242
4343 - name : 👷 build project
4444 run : dotnet build --configuration Release --no-restore Spillgebees.Blazor.RichTextEditor.sln
45-
45+
4646 - name : ✅ test project
4747 run : dotnet test --configuration Release --no-build --verbosity normal Spillgebees.Blazor.RichTextEditor.sln
48-
48+
4949 - name : 📦 package the application
5050 if : inputs.should-package
5151 run : dotnet pack src/Spillgebees.Blazor.RichTextEditor/Spillgebees.Blazor.RichTextEditor.csproj --configuration Release --no-build --output package
5252
5353 - name : 🔃 upload artifacts
5454 if : inputs.should-package
55- uses : actions/upload-artifact@v3
55+ uses : actions/upload-artifact@v4
5656 with :
5757 name : artifacts
5858 if-no-files-found : error
5959 retention-days : 1
6060 path : package/*.nupkg
6161
62- - name : 📦 publish WASM application as with .NET 7.0
63- if : inputs.should-publish-gh-page
64- run : dotnet publish src/Spillgebees.Blazor.RichTextEditor.Samples/Spillgebees.Blazor.RichTextEditor.Samples.Wasm/Spillgebees.Blazor.RichTextEditor.Samples.Wasm.csproj --configuration Release --no-build --output wasm-application/net7.0 --framework net7.0
65-
66- - name : 🔧 fix base path for .NET 7.0
67- if : inputs.should-publish-gh-page
68- run : sed -i 's/<base href="\/" \/>/<base href="\/Blazor.RichTextEditor\/main\/net7\.0\/" \/>/g' wasm-application/net7.0/wwwroot/index.html
69-
7062 - name : 📦 publish WASM application as with .NET 8.0
7163 if : inputs.should-publish-gh-page
7264 run : dotnet publish src/Spillgebees.Blazor.RichTextEditor.Samples/Spillgebees.Blazor.RichTextEditor.Samples.Wasm/Spillgebees.Blazor.RichTextEditor.Samples.Wasm.csproj --configuration Release --no-build --output wasm-application/net8.0 --framework net8.0
@@ -75,20 +67,28 @@ jobs:
7567 if : inputs.should-publish-gh-page
7668 run : sed -i 's/<base href="\/" \/>/<base href="\/Blazor.RichTextEditor\/main\/net8\.0\/" \/>/g' wasm-application/net8.0/wwwroot/index.html
7769
78- - name : 🚀 deploy .NET 7.0 gh page
70+ - name : 📦 publish WASM application as with .NET 9.0
7971 if : inputs.should-publish-gh-page
80- uses : peaceiris/actions-gh-pages@v3.9.3
81- with :
82- github_token : ${{ secrets.GITHUB_TOKEN }}
83- publish_dir : ./wasm-application/net7.0/wwwroot
84- destination_dir : ${{ inputs.gh-page-destination-directory }}/net7.0
85- enable_jekyll : false
72+ run : dotnet publish src/Spillgebees.Blazor.RichTextEditor.Samples/Spillgebees.Blazor.RichTextEditor.Samples.Wasm/Spillgebees.Blazor.RichTextEditor.Samples.Wasm.csproj --configuration Release --no-build --output wasm-application/net9.0 --framework net9.0
73+
74+ - name : 🔧 fix base path for .NET 9.0
75+ if : inputs.should-publish-gh-page
76+ run : sed -i 's/<base href="\/" \/>/<base href="\/Blazor.RichTextEditor\/main\/net8\.0\/" \/>/g' wasm-application/net9.0/wwwroot/index.html
8677
8778 - name : 🚀 deploy .NET 8.0 gh page
8879 if : inputs.should-publish-gh-page
89- uses : peaceiris/actions-gh-pages@v3.9.3
80+ uses : peaceiris/actions-gh-pages@v4
9081 with :
9182 github_token : ${{ secrets.GITHUB_TOKEN }}
9283 publish_dir : ./wasm-application/net8.0/wwwroot
9384 destination_dir : ${{ inputs.gh-page-destination-directory }}/net8.0
9485 enable_jekyll : false
86+
87+ - name : 🚀 deploy .NET 9.0 gh page
88+ if : inputs.should-publish-gh-page
89+ uses : peaceiris/actions-gh-pages@v4
90+ with :
91+ github_token : ${{ secrets.GITHUB_TOKEN }}
92+ publish_dir : ./wasm-application/net9.0/wwwroot
93+ destination_dir : ${{ inputs.gh-page-destination-directory }}/net9.0
94+ enable_jekyll : false
0 commit comments