Skip to content

publish correction

publish correction #2

Workflow file for this run

name: DeployToGitHubPages
env:
PUBLISH_DIR: blazor-app/bin/Release/net8.0/publish/wwwroot
# Controls when the action will run
on:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Publish app
run: dotnet publish -c Release ./blazor-app/
- name: Rewrite base href
uses: SteveSandersonMS/ghaction-rewrite-base-href@v1
with:
html_path: ${{ env.PUBLISH_DIR }}/index.html
base_href: /blazor-app/
- 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 }}