Skip to content

Bump dependabot/fetch-metadata from 2.3.0 to 2.4.0 (#21) #70

Bump dependabot/fetch-metadata from 2.3.0 to 2.4.0 (#21)

Bump dependabot/fetch-metadata from 2.3.0 to 2.4.0 (#21) #70

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@v3
with:
dotnet-version: '9.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