Skip to content

fix: update target framework to .NET 10 and upgrade package references #75

fix: update target framework to .NET 10 and upgrade package references

fix: update target framework to .NET 10 and upgrade package references #75

name: Deploy to GitHub Pages
permissions:
contents: write
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '10.0.x'
- name: Restore dependencies
run: dotnet restore
- name: Build BlazorLocalTimeSample
run: dotnet publish -c:Release -o:public -p:GHPages=true example/BlazorLocalTimeSample/BlazorLocalTimeSample.csproj
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: public/wwwroot
force_orphan: true