Skip to content

Commit

Permalink
Merge branch 'main' into update-examples
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveSkender authored Mar 16, 2024
2 parents 57f0b31 + 2e558a2 commit 64d1103
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/deploy-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,16 @@ jobs:
- name: Compose version
id: compose
run: |
COMPOSED_VERSION=${{ steps.gitversion.outputs.majorMinorPatch }}${{ inputs.preview && '-preview.' || '' }}${{ inputs.preview && steps.gitversion.outputs.preReleaseNumber || '' }}
COMPOSED_VERSION=${{ steps.gitversion.outputs.majorMinorPatch }}${{ inputs.preview && '-preview.' || '' }}${{ inputs.preview && steps.gitversion.outputs.preReleaseNumber || inputs.preview && github.run_number || '' }}
echo "version=$COMPOSED_VERSION" >> "$GITHUB_OUTPUT"
echo "COMPOSED_VERSION=$COMPOSED_VERSION" >> "$GITHUB_ENV"
echo "Composed version is:"
echo $COMPOSED_VERSION
- name: Update release notes URL
uses: jacobtomlinson/gha-find-replace@v3
with:
find: "<PackageReleaseNotes>https://github.com/DaveSkender/Stock.Indicators/releases</PackageReleaseNotes>"
replace: "<PackageReleaseNotes>https://github.com/DaveSkender/Stock.Indicators/releases/tag/${{ steps.compose.outputs.version }}</PackageReleaseNotes>"
regex: false

- name: Install .NET SDK
uses: actions/setup-dotnet@v4
Expand All @@ -67,7 +72,7 @@ jobs:
run: >
dotnet build src/Indicators.csproj
--configuration Release
--property:Version=$COMPOSED_VERSION
--property:Version=${{ steps.compose.outputs.version }}
--property:ContinuousIntegrationBuild=true
-warnAsError
Expand All @@ -78,7 +83,7 @@ jobs:
--no-build
--include-symbols
--output NuGet
-p:PackageVersion=$COMPOSED_VERSION
-p:PackageVersion=${{ steps.compose.outputs.version }}
- name: Save NuGet package
uses: actions/upload-artifact@v3
Expand All @@ -95,7 +100,7 @@ jobs:
echo "| Minor | ${{ steps.gitversion.outputs.minor }} |"
echo "| Patch | ${{ steps.gitversion.outputs.patch }} |"
echo "| Base | ${{ steps.gitversion.outputs.majorMinorPatch }} |"
echo "| Composed | $COMPOSED_VERSION |"
echo "| Composed | ${{ steps.compose.outputs.COMPOSED_VERSION }} |"
} >> $GITHUB_STEP_SUMMARY
deploy:
Expand Down

0 comments on commit 64d1103

Please sign in to comment.