V2.5.0 #80
Workflow file for this run
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 | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| jobs: | |
| build-test-document: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup .NET SDK | |
| uses: actions/setup-dotnet@v3 | |
| with: | |
| dotnet-version: '10.0.x' | |
| - name: Install Kampose | |
| run: dotnet tool install --global kampose | |
| - name: Restore Dependencies | |
| run: dotnet restore | |
| - name: Build Solution | |
| run: dotnet build --no-restore -c Release | |
| - name: Test Solution | |
| run: dotnet test --no-restore --verbosity minimal | |
| - name: Generate Documentation | |
| run: kampose build | |
| - name: Deploy Documentation to GitHub Pages | |
| if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request' | |
| uses: peaceiris/actions-gh-pages@v4 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./.site | |
| keep_files: false |