Skip to content

Updates

Updates #7

name: DeployToGitHubPages
env:
PUBLISH_DIR: /home/runner/work/blazor-samples/blazor-samples/9.0/BlazorWebAssemblyXrefGenerator/bin/Release/net8.0/publish/wwwroot
# Controls when the action will run
on:
push:
paths:
- 9.0/BlazorWebAssemblyXrefGenerator/**
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Publish app
run: dotnet publish 9.0/BlazorWebAssemblyXrefGenerator -c Release
- name: Rewrite base href
uses: SteveSandersonMS/ghaction-rewrite-base-href@v1
with:
html_path: ${{ env.PUBLISH_DIR }}/index.html
base_href: /9.0/BlazorWebAssemblyXrefGenerator/
- name: GitHub Pages
if: success()
uses: crazy-max/[email protected]
with:
target_branch: gh-pages
build_dir: ${{ env.PUBLISH_DIR }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}