Merge pull request #836 from 7474/dependabot/nuget/SRC.Sharp/SRCTestB… #558
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deploy to GitHub Pages | |
| on: | |
| push: | |
| branches: | |
| - master | |
| env: | |
| PUBLISH_DIR: SRC.Sharp/SRCTestBlazor/bin/Release/net8.0/publish/wwwroot | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: '8.0.x' | |
| - name: Build project | |
| run: dotnet publish SRC.Sharp/SRCTestBlazor/SRCTestBlazor.csproj -c Release | |
| - name: Deploy to GitHub Pages | |
| run: | | |
| mv ${{ env.PUBLISH_DIR }}/index.html index.html | |
| # Keep the base href step | |
| echo '<base href="${{ env.PUBLISH_DIR }}/index.html">' > index.html | |