Skip to content

Commit 08ae1d5

Browse files
committed
Github CIcd
1 parent 00a2108 commit 08ae1d5

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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+
uses: JamesIves/[email protected]
31+
with:
32+
token: ${{ secrets.GITHUB_TOKEN }}
33+
branch: gh-pages
34+
folder: release/wwwroot

0 commit comments

Comments
 (0)