-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (30 loc) · 1011 Bytes
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: FonoSozlukNet Blazor Webassembly isi
on:
push:
branches:
- main
jobs:
deploy-to-github-pages:
runs-on: ubuntu-latest
steps:
# Checkout the code
- uses: actions/checkout@v4
with:
submodules: recursive
# Install .NET Core SDK
- name: Setup .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
# Install dotnet wasm buildtools workload
- name: Install .NET WASM Build Tools
run: dotnet workload install wasm-tools
# Publishes Blazor project to the release-folder
- name: Publish .NET Core Project
run: dotnet publish ./FonoSozlukNet/FonoBlazor/FonoBlazor.csproj -c:Release -p:GHPages=true -o dist/Web --nologo
- name: Commit wwwroot to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: dist/Web/wwwroot