File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change 1+ name : ThreeDAssets
2+
3+ on :
4+ push :
5+ branches : [ "master" ]
6+
7+ jobs :
8+ build :
9+ runs-on : ubuntu-latest
10+
11+ steps :
12+ - name : Checkout repository
13+ uses : actions/checkout@v2
14+
15+ - name : Setup .NET
16+ uses : actions/setup-dotnet@v2
17+ with :
18+ dotnet-version : 9.0.x
19+
20+ - name : Publish Blazor project
21+ run : dotnet publish /TextHub/TextHub.csproj -c Release -o release --nologo
22+
23+ - name : Add 404.html (for GitHub Pages SPA fallback)
24+ run : cp release/wwwroot/index.html release/wwwroot/404.html
25+
26+ - name : Add .nojekyll file
27+ run : touch release/wwwroot/.nojekyll
28+
29+ - name : Deploy to GitHub Pages
30+ 31+ with :
32+ token : ${{ secrets.GITHUB_TOKEN }}
33+ branch : gh-pages
34+ folder : release/wwwroot
You can’t perform that action at this time.
0 commit comments