Skip to content

👷

👷 #68

Workflow file for this run

name: GitHub Pages
on:
push:
branches:
- master
jobs:
build_and_deploy_job:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Build
run: dotnet publish ./samples/GEmojiSharp.Sample.BlazorWebAssembly/ --configuration Release --output build
- name: Fix index.html
run: sed -i 's/<base href="\/" \/>/<base href="\/GEmojiSharp\/" \/>/g' ./build/wwwroot/index.html
- name: Add .nojekyll
run: touch ./build/wwwroot/.nojekyll
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: ./build/wwwroot
clean: true