Skip to content

Commit

Permalink
Merge pull request #183 from CodebreakerApp/179-cleanup_libs
Browse files Browse the repository at this point in the history
bump backendmodels packages
  • Loading branch information
christiannagel authored May 27, 2024
2 parents 8418bcf + c0b4acf commit c71fb83
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 1 deletion.
55 changes: 55 additions & 0 deletions .github/workflows/codebreaker-lib-backendmodels-stable.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Backendmodels stable lib

on:

# Allow manually trigger
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
env:
solutionfile-path: src/Codebreaker.Backend.Models.sln
projectfile-path: src/services/gameapi/Codebreaker.GameAPIs.Models/Codebreaker.GameAPIs.Models.csproj
artifact-name: codebreaker-backendmodels-stable

steps:
- name: Checkout to the branch
uses: actions/checkout@v4
with:
ref: main

- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x

- name: Build the library
run: dotnet build -c Release ${{ env.solutionfile-path }}

- name: Run the unit tests
run: dotnet test ${{ env.solutionfile-path }}

- name: Create a Package
run: dotnet pack -c Release ${{ env.projectfile-path }} -o packages

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: ${{ env.artifact-name }}
path: packages/*
retention-days: 30

publishdevops:
uses: CodebreakerApp/Codebreaker.Backend/.github/workflows/publishnuget-azuredevops.yml@main
needs: build
with:
artifact-name: codebreaker-backendmodels-stable
secrets: inherit

publishnuget:
uses: CodebreakerApp/Codebreaker.Backend/.github/workflows/publishnuget-nugetserver.yml@main
needs: publishdevops
with:
artifact-name: codebreaker-backendmodels-stable
secrets: inherit
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="CNinnovation.Codebreaker.Analyzers" Version="3.6.0-beta.56" />
<PackageReference Include="CNinnovation.Codebreaker.Analyzers" Version="3.7.0" />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit c71fb83

Please sign in to comment.