Skip to content

Commit

Permalink
Merge pull request #193 from CodebreakerApp/192-version-4x
Browse files Browse the repository at this point in the history
Update NuGet build
  • Loading branch information
christiannagel authored Jul 12, 2024
2 parents 3909011 + 8135a61 commit 02de39c
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 10 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/codebreaker-lib-viewmodels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
build:
uses: CodebreakerApp/Codebreaker.XAML/.github/workflows/createnuget-withbuildnumber.yml@main
with:
version-suffix: beta.
version-suffix: preview.1.
version-number: ${{ github.run_number }}
version-offset: 10
solutionfile-path: src/CodeBreaker.ViewModels.sln
Expand All @@ -38,9 +38,9 @@ jobs:
artifact-name: codebreaker-viewmodels
secrets: inherit

publishnuget:
uses: CodebreakerApp/Codebreaker.XAML/.github/workflows/publishnuget-nugetserver.yml@main
needs: publishdevops
with:
artifact-name: codebreaker-viewmodels
secrets: inherit
# publishnuget:
# uses: CodebreakerApp/Codebreaker.XAML/.github/workflows/publishnuget-nugetserver.yml@main
# needs: publishdevops
# with:
# artifact-name: codebreaker-viewmodels
# secrets: inherit
3 changes: 1 addition & 2 deletions .github/workflows/createnuget-withbuildnumber.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ jobs:
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ inputs.dotnet-version }}
dotnet-quality: 'preview'

- name: Calculate version suffix with offset
id: version
Expand Down Expand Up @@ -86,5 +85,5 @@ jobs:
with:
name: ${{ inputs.artifact-name }}
path: packages/*
retention-days: 3
retention-days: 7

20 changes: 20 additions & 0 deletions publishnuget.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# GitHub Actions

## Publish to Azure DevOps

[Azure DevOps feed for daily builds](https://pkgs.dev.azure.com/cnilearn/codebreakerpackages/_packaging/codebreaker/nuget/v3/index.json)

Daily build version of NuGet packages (*CNinnovation.Codebreaker.ViewModels*) are published to Azure DevOps with every merge to the main branch.

For publishing, an Azure DevOps PAT is required.
Permissions: Packaging, Read & Write

The PAT is configured with the environment *DevOpsArtifacts" actions secret *DEVOPS_ARTIFACT_PAT*.

Valid until 2025/01/12

## Publish to NuGet

Preview and release versions are published to the NuGet server.

[CNInnovation.Codebreaker.ViewModels](https://www.nuget.org/packages/CNInnovation.Codebreaker.ViewModels/)
2 changes: 1 addition & 1 deletion src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
</PropertyGroup>

<PropertyGroup>
<VersionPrefix>3.7.0</VersionPrefix>
<VersionPrefix>4.0.0</VersionPrefix>
</PropertyGroup>
</Project>

0 comments on commit 02de39c

Please sign in to comment.