Guides overhaul #992
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: | |
| pull_request: | |
| branches: | |
| - stable | |
| - alpha | |
| push: | |
| branches: | |
| - stable | |
| - alpha | |
| tags-ignore: | |
| - "[0-9]+.[0-9]+.[0-9]+" | |
| - "[0-9]+.[0-9]+.[0-9]+-*" | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/[email protected] | |
| with: | |
| fetch-depth: 0 | |
| filter: tree:0 | |
| - name: Setup .NET | |
| uses: actions/[email protected] | |
| with: | |
| global-json-file: global.json | |
| - name: Restore dependencies | |
| run: dotnet restore | |
| - name: Build | |
| run: dotnet build -c Release --no-restore --warnaserror | |
| - name: Test | |
| run: dotnet test -c Release --no-build --verbosity normal | |
| - name: Pack Packages | |
| run: | | |
| dotnet pack NetCord -c Release --no-build | |
| dotnet pack NetCord.Services -c Release --no-build | |
| dotnet pack Hosting/NetCord.Hosting -c Release --no-build | |
| dotnet pack Hosting/NetCord.Hosting.Services -c Release --no-build | |
| dotnet pack Hosting/NetCord.Hosting.AspNetCore -c Release --no-build | |
| - name: Setup Node | |
| uses: actions/[email protected] | |
| - name: Build Documentation | |
| working-directory: Documentation | |
| run: | | |
| dotnet tool install docfx -g --version 2.78.3 | |
| npm install | |
| npm run lint | |
| npm run test | |
| npm run build | |
| - name: Upload Build Artifacts | |
| uses: actions/[email protected] | |
| with: | |
| name: Build Artifacts | |
| path: | | |
| NetCord/bin/Release | |
| NetCord.Services/bin/Release | |
| Hosting/NetCord.Hosting/bin/Release | |
| Hosting/NetCord.Hosting.Services/bin/Release | |
| Hosting/NetCord.Hosting.AspNetCore/bin/Release | |
| - name: Upload Documentation Artifacts | |
| uses: actions/[email protected] | |
| with: | |
| name: Documentation Artifacts | |
| path: Documentation/_site |