Skip to content

chore: upgrade to .NET 10, migrate to .slnx, bump to 0.4.0-alpha.1 (#19) #5

chore: upgrade to .NET 10, migrate to .slnx, bump to 0.4.0-alpha.1 (#19)

chore: upgrade to .NET 10, migrate to .slnx, bump to 0.4.0-alpha.1 (#19) #5

Workflow file for this run

# Deploy ShellUI Preview to GitHub Pages (for docs embedding)
name: Deploy Preview to GitHub Pages
on:
push:
branches: [ main ]
paths:
- 'NET10/ShellUI.Preview/**'
- 'src/ShellUI.Components/**'
- '.github/workflows/preview-pages.yml'
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '10.0.x'
- name: Publish Preview (Blazor WASM)
run: |
dotnet publish NET10/ShellUI.Preview/ShellUI.Preview.csproj \
-c Release \
-o ./preview-publish
env:
# For GH Pages: base href = /repo-name/ (set your repo name)
# Leave empty for root: https://user.github.io/repo-name/
BASE_HREF: /
- name: Setup Pages
uses: actions/configure-pages@v4
with:
# Auto-enable Pages on first run so this workflow can deploy without
# someone clicking through Settings → Pages first. Requires the
# GITHUB_TOKEN to have `pages: write` (already set above).
enablement: true
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./preview-publish/wwwroot
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4