AdmDataModule: Don't block logic in UpdateAllGuilds #218
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: .NET Core Desktop | |
| on: | |
| push: | |
| branches: [ "main", "develop", "reborn" ] | |
| pull_request: | |
| branches: [ "main", "develop", "reborn" ] | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| configuration: [ Release ] | |
| projectName: [ XeniaBot.Core, XeniaBot.WebPanel ] | |
| runtime: [ linux-x64 ] | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| # Install the .NET Core workload | |
| - name: Install .NET Core | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: | | |
| 10.0.x | |
| - run: dotnet tool install -g dotnet-t4 | |
| - name: Clean | |
| run: dotnet clean ./XeniaBot.sln --configuration ${{ matrix.configuration }} && dotnet nuget locals all --clear | |
| - name: Publish | |
| run: | | |
| dotnet publish ${{ matrix.projectName }} --self-contained true -c ${{ matrix.configuration }} --runtime ${{ matrix.runtime }} -p:PublishSingleFile=true | |
| Compress-Archive -Path ./${{ matrix.projectName }}/bin/${{ matrix.configuration }}/net10.0/${{ matrix.runtime }}/publish/* -Destination ${{ matrix.projectName }}.zip | |
| - name: Run Trivy vulnerability scanner in fs mode | |
| uses: aquasecurity/trivy-action@master | |
| with: | |
| scan-type: 'fs' | |
| scan-ref: '.' | |
| trivy-config: trivy.yaml | |
| - name: Upload build artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ${{ matrix.projectName }} (${{ matrix.configuration }}, ${{ matrix.runtime }}) | |
| path: | | |
| ./${{ matrix.projectName }}.zip | |