mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-18 10:38:05 +00:00
minor update of main_automation
This commit is contained in:
@@ -73,21 +73,21 @@ jobs:
|
||||
|
||||
- name: Build Main branch of QuanTAlib DLL
|
||||
if: ${{ github.ref != 'refs/heads/dev' }}
|
||||
run: dotnet build ./Calculations/Calculations.csproj --configuration Release --nologo -p:PackageVersion=${{ steps.gitversion.outputs.MajorMinorPatch }}
|
||||
run: dotnet build ./lib/quantalib.csproj --configuration Release --nologo -p:PackageVersion=${{ steps.gitversion.outputs.MajorMinorPatch }}
|
||||
- name: Build dev branch of QuanTAlib DLL
|
||||
if: ${{ github.ref == 'refs/heads/dev' }}
|
||||
run: dotnet build ./Calculations/Calculations.csproj --configuration Release --nologo -p:PackageVersion=${{ steps.gitversion.outputs.FullSemVer }}
|
||||
- name: Build Indicators DLL
|
||||
run: dotnet build ./Indicators/Indicators.csproj --configuration Release --nologo
|
||||
- name: Build Strategies DLL
|
||||
run: dotnet build ./Strategies/Strategies.csproj --configuration Release --nologo
|
||||
run: dotnet build ./lib/quantalib.csproj --configuration Release --nologo -p:PackageVersion=${{ steps.gitversion.outputs.FullSemVer }}
|
||||
- name: Build Averages DLL
|
||||
run: dotnet build ./quantower/Averages/Averages.csproj --configuration Release --nologo
|
||||
- name: Build Statistics DLL
|
||||
run: dotnet build ./quantower/Statistics/Statistics.csproj --configuration Release --nologo
|
||||
|
||||
- name: DotCover Test HTML
|
||||
if: ${{ github.ref == 'refs/heads/dev' }}
|
||||
run: dotnet dotcover test Tests/Tests.csproj --dcReportType=HTML --dcoutput=./dotcover.html
|
||||
run: dotnet dotcover test tests/tests.csproj --dcReportType=HTML --dcoutput=./dotcover.html
|
||||
- name: DotCover Test XML
|
||||
if: ${{ github.ref == 'refs/heads/dev' }}
|
||||
run: dotnet dotcover test Tests/Tests.csproj --dcReportType=DetailedXML --dcoutput=./dotcover.xml --verbosity=Detailed
|
||||
run: dotnet dotcover test tests/tests.csproj --dcReportType=DetailedXML --dcoutput=./dotcover.xml --verbosity=Detailed
|
||||
- name: Coverlet Test
|
||||
if: ${{ github.ref == 'refs/heads/dev' }}
|
||||
run: dotnet test -p:CollectCoverage=true --collect:"XPlat Code Coverage" --results-directory "./"
|
||||
@@ -134,12 +134,10 @@ jobs:
|
||||
release_name: ${{ steps.gitversion.outputs.SemVer }}
|
||||
tag_name: prerelease
|
||||
release_config: |
|
||||
Calculations/bin/Release/net6.0/QuanTAlib.dll
|
||||
Indicators/bin/Release/QuanTAlib_Indicators.dll
|
||||
Strategies/bin/Release/QuanTAlib_Strategies.dll
|
||||
lib/bin/Release/QuanTAlib.dll
|
||||
|
||||
- name: Push package to myget.org
|
||||
run: dotnet nuget push 'Calculations/bin/Release/QuanTAlib.*.nupkg'
|
||||
run: dotnet nuget push 'lib/bin/Release/QuanTAlib.*.nupkg'
|
||||
--api-key ${{ secrets.MYGET_DEPLOY_KEY_QUANTALIB }}
|
||||
--source https://www.myget.org/F/quantalib/api/v2/package
|
||||
--skip-duplicate
|
||||
@@ -157,9 +155,7 @@ jobs:
|
||||
release_name: ${{ steps.gitversion.outputs.MajorMinorPatch }}
|
||||
tag_name: latest
|
||||
release_config: |
|
||||
Calculations/bin/Release/net6.0/QuanTAlib.dll
|
||||
Indicators/bin/Release/QuanTAlib_Indicators.dll
|
||||
Strategies/bin/Release/QuanTAlib_Strategies.dll
|
||||
lib/bin/Release/QuanTAlib.dll
|
||||
|
||||
- name: Push package to nuget.org
|
||||
if: ${{ github.ref == 'refs/heads/main' }}
|
||||
|
||||
Reference in New Issue
Block a user