mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-17 10:08:05 +00:00
gitversion fix
This commit is contained in:
@@ -70,9 +70,9 @@ jobs:
|
||||
run: |
|
||||
dotnet build --no-restore --configuration Debug
|
||||
dotnet build ./lib/quantalib.csproj --configuration Release --nologo
|
||||
dotnet build ./quantower/Averages/Averages.csproj --configuration Release --nologo
|
||||
dotnet build ./quantower/Statistics/Statistics.csproj --configuration Release --nologo
|
||||
dotnet build ./quantower/Volatility/Volatility.csproj --configuration Release --nologo
|
||||
dotnet build ./quantower/Averages/_Averages.csproj --configuration Release --nologo
|
||||
dotnet build ./quantower/Statistics/_Statistics.csproj --configuration Release --nologo
|
||||
dotnet build ./quantower/Volatility/_Volatility.csproj --configuration Release --nologo
|
||||
dotnet build ./SyntheticVendor/SyntheticVendor.csproj --configuration Release --nologo
|
||||
dotnet dotcover test Tests/Tests.csproj --dcReportType=HTML --dcoutput=./dotcover.html
|
||||
|
||||
@@ -107,9 +107,9 @@ jobs:
|
||||
run: |
|
||||
dotnet build --no-restore --configuration Debug
|
||||
dotnet build ./lib/quantalib.csproj --configuration Release --nologo
|
||||
dotnet build ./quantower/Averages/Averages.csproj --configuration Release --nologo
|
||||
dotnet build ./quantower/Statistics/Statistics.csproj --configuration Release --nologo
|
||||
dotnet build ./quantower/Volatility/Volatility.csproj --configuration Release --nologo
|
||||
dotnet build ./quantower/Averages/_Averages.csproj --configuration Release --nologo
|
||||
dotnet build ./quantower/Statistics/_Statistics.csproj --configuration Release --nologo
|
||||
dotnet build ./quantower/Volatility/_Volatility.csproj --configuration Release --nologo
|
||||
dotnet build ./SyntheticVendor/SyntheticVendor.csproj --configuration Release --nologo
|
||||
|
||||
- name: Run Tests with Coverage
|
||||
@@ -262,31 +262,25 @@ jobs:
|
||||
run: |
|
||||
dotnet build ./lib/quantalib.csproj --configuration Release --nologo \
|
||||
-p:PackageVersion=${{ steps.gitversion.outputs.MajorMinorPatch }}
|
||||
dotnet build ./quantower/Averages/Averages.csproj --configuration Release --nologo
|
||||
dotnet build ./quantower/Statistics/Statistics.csproj --configuration Release --nologo
|
||||
dotnet build ./quantower/Volatility/Volatility.csproj --configuration Release --nologo
|
||||
dotnet build ./quantower/Averages/_Averages.csproj --configuration Release --nologo
|
||||
dotnet build ./quantower/Statistics/_Statistics.csproj --configuration Release --nologo
|
||||
dotnet build ./quantower/Volatility/_Volatility.csproj --configuration Release --nologo
|
||||
dotnet build ./SyntheticVendor/SyntheticVendor.csproj --configuration Release --nologo
|
||||
|
||||
############# Publish dev release
|
||||
|
||||
- name: Update Development Release
|
||||
- name: Create or Update Development Release
|
||||
if: github.ref == 'refs/heads/dev'
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
MYGET_URL: https://www.myget.org/feed/quantalib/package/nuget/QuanTAlib
|
||||
PACKAGE_VERSION: ${{ steps.gitversion.outputs.NuGetVersion }}
|
||||
run: |
|
||||
tag_name="development"
|
||||
release_name="Development Build"
|
||||
gh release delete $tag_name --yes || true
|
||||
git push origin :refs/tags/$tag_name || true
|
||||
gh release create $tag_name \
|
||||
--title "$release_name" \
|
||||
--notes "Latest development build from commit ${{ github.sha }}
|
||||
|
||||
MyGet Package: [$MYGET_URL/$PACKAGE_VERSION]($MYGET_URL/$PACKAGE_VERSION) \n" \
|
||||
gh release delete development --yes || true
|
||||
gh release create development \
|
||||
--title "Development Build" \
|
||||
--notes "Latest development build from commit ${{ github.sha }}" \
|
||||
--prerelease \
|
||||
--target ${{ github.sha }} \
|
||||
lib/bin/Release/QuanTAlib.dll \
|
||||
quantower/Averages/bin/Release/Averages.dll \
|
||||
quantower/Statistics/bin/Release/Statistics.dll \
|
||||
quantower/Volatility/bin/Release/Volatility.dll \
|
||||
@@ -302,20 +296,17 @@ jobs:
|
||||
|
||||
############## Publish main release
|
||||
|
||||
- name: Publish release assets
|
||||
- name: Create GitHub Release
|
||||
if: ${{ github.ref == 'refs/heads/main' }}
|
||||
uses: SourceSprint/upload-multiple-releases@1.0.7
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
prerelease: false
|
||||
overwrite: true
|
||||
release_name: ${{ steps.gitversion.outputs.MajorMinorPatch }}
|
||||
tag_name: latest
|
||||
release_config: |
|
||||
quantower/Averages/bin/Release/Averages.dll
|
||||
quantower/Statistics/bin/Release/Statistics.dll
|
||||
quantower/Volatility/bin/Release/Volatility.dll
|
||||
run: |
|
||||
gh release create v${{ steps.gitversion.outputs.MajorMinorPatch }} \
|
||||
--title "Release ${{ steps.gitversion.outputs.MajorMinorPatch }}" \
|
||||
--notes "Release notes for version ${{ steps.gitversion.outputs.MajorMinorPatch }}" \
|
||||
quantower/Averages/bin/Release/Averages.dll \
|
||||
quantower/Statistics/bin/Release/Statistics.dll \
|
||||
quantower/Volatility/bin/Release/Volatility.dll \
|
||||
SyntheticVendor/bin/Release/SyntheticVendor.dll
|
||||
|
||||
- name: Push release package to nuget.org
|
||||
@@ -324,4 +315,4 @@ jobs:
|
||||
dotnet nuget push 'lib/bin/Release/QuanTAlib.*.nupkg' \
|
||||
--source https://api.nuget.org/v3/index.json \
|
||||
--skip-duplicate \
|
||||
--api-key ${{ secrets.NUGET_DEPLOY_KEY_QUANTLIB }}
|
||||
--api-key ${{ secrets.NUGET_DEPLOY_KEY_QUANTLIB }}
|
||||
|
||||
Reference in New Issue
Block a user