Merge pull request #315 from CodebreakerApp/copilot/fix-314 #27
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: Backend models lib | |
| on: | |
| # Automatically trigger it when detected changes in repo | |
| push: | |
| branches: | |
| [ main ] | |
| paths: | |
| - 'src/services/common/Codebreaker.GameAPIs.Models/**' | |
| - 'src/Codebreaker.Backend.Models.sln' | |
| # Allow manually trigger | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| uses: CodebreakerApp/Codebreaker.Backend/.github/workflows/createnuget-withbuildnumber.yml@main | |
| with: | |
| version-suffix: preview.1. | |
| version-number: ${{ github.run_number }} | |
| version-offset: 10 | |
| solutionfile-path: src/Codebreaker.Backend.Models.sln | |
| projectfile-path: src/services/common/Codebreaker.GameAPIs.Models/Codebreaker.GameAPIs.Models.csproj | |
| dotnet-version: '9.0.x' | |
| artifact-name: codebreaker-backend-models | |
| branch-name: main | |
| publishdevops: | |
| uses: CodebreakerApp/Codebreaker.Backend/.github/workflows/publishnuget-azuredevops.yml@main | |
| needs: build | |
| with: | |
| artifact-name: codebreaker-backend-models | |
| secrets: inherit | |
| # publishnuget: | |
| # uses: CodebreakerApp/Codebreaker.Backend/.github/workflows/publishnuget-nugetserver.yml@main | |
| # needs: publishdevops | |
| # with: | |
| # artifact-name: codebreaker-backend-models | |
| # secrets: inherit |