Skip to content

Update cli.yml

Update cli.yml #12

Workflow file for this run

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