Merge pull request #713 from 7474/copilot/complete-porting-task #451
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@v2 | |
| - name: Build project | |
| run: dotnet publish -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 | |