refactor: adjust vertical positioning logic for SVG rendering #31
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: Build and publish docs to GitHub Pages | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| env: | |
| ASPNETCORE_ENVIRONMENT: Production | |
| WEBAPP_PATH: ./docs/VcrSharp.Docs/ | |
| WEBAPP_CSPROJ: VcrSharp.Docs.csproj | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| # Allow only one concurrent deployment | |
| concurrency: | |
| group: "pages" | |
| cancel-in-progress: false | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| global-json-file: global.json | |
| - name: Build the Project | |
| run: | | |
| dotnet build | |
| - name: Run webapp and generate static files | |
| run: | | |
| dotnet run --project ${{ env.WEBAPP_PATH }}${{env.WEBAPP_CSPROJ}} --configuration Release -- build "/vcr/" | |
| - name: Setup Pages | |
| uses: actions/configure-pages@v4 | |
| - name: Add .nojekyll file | |
| run: touch ${{ env.WEBAPP_PATH }}output/.nojekyll | |
| - name: Upload artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: ${{ env.WEBAPP_PATH }}output | |
| deploy: | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| runs-on: ubuntu-latest | |
| needs: build | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
| steps: | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |