Merge pull request #48 from joadan/copilot/fix-nuget-license-warning #75
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
| # This is ".github/workflows/gh-pages.yml" file. | |
| # This is an EXAMPLE of "GitHub Actions Workflow file" . | |
| name: github pages | |
| on: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| # Checkout the code | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| # Install .NET SDK | |
| - name: Setup .NET SDK | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: 10.0.x | |
| - name: Install .NET WebAssembly Tools | |
| run: dotnet workload install wasm-tools | |
| # Publish the site | |
| - name: Publish | |
| run: dotnet publish docs/Linq2OData.Docs/Linq2OData.Docs.csproj -c:Release -o:publish -p:GHPages=true | |
| # Deploy the site | |
| - name: Deploy | |
| uses: peaceiris/actions-gh-pages@v4 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: publish/wwwroot | |
| force_orphan: true |