mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-21 03:58:04 +00:00
Update main automation workflow
This commit is contained in:
@@ -13,7 +13,7 @@ jobs:
|
|||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
@@ -23,6 +23,38 @@ jobs:
|
|||||||
dotnet-version: '8.x'
|
dotnet-version: '8.x'
|
||||||
dotnet-quality: 'preview'
|
dotnet-quality: 'preview'
|
||||||
|
|
||||||
|
- name: Install GitVersion
|
||||||
|
uses: gittools/actions/gitversion/setup@v0
|
||||||
|
with:
|
||||||
|
versionSpec: '5.5.0'
|
||||||
|
|
||||||
|
- name: Determine Version
|
||||||
|
id: gitversion
|
||||||
|
uses: gittools/actions/gitversion/execute@v0
|
||||||
|
with:
|
||||||
|
useConfigFile: true
|
||||||
|
configFilePath: /a/QuanTAlib/QuanTAlib/GitVersion.yml
|
||||||
|
|
||||||
|
- name: Display GitVersion variables (without prefix)
|
||||||
|
run: |
|
||||||
|
echo "Major: ${{ steps.gitversion.outputs.major }}"
|
||||||
|
echo "Minor: ${{ steps.gitversion.outputs.minor }}"
|
||||||
|
echo "Patch: ${{ steps.gitversion.outputs.patch }}"
|
||||||
|
echo "PreReleaseTag: ${{ steps.gitversion.outputs.preReleaseTag }}"
|
||||||
|
echo "PreReleaseTagWithDash: ${{ steps.gitversion.outputs.preReleaseTagWithDash }}"
|
||||||
|
echo "PreReleaseLabel: ${{ steps.gitversion.outputs.preReleaseLabel }}"
|
||||||
|
echo "PreReleaseNumber: ${{ steps.gitversion.outputs.preReleaseNumber }}"
|
||||||
|
echo "WeightedPreReleaseNumber: ${{ steps.gitversion.outputs.weightedPreReleaseNumber }}"
|
||||||
|
echo "BuildMetaData: ${{ steps.gitversion.outputs.buildMetaData }}"
|
||||||
|
echo "BuildMetaDataPadded: ${{ steps.gitversion.outputs.buildMetaDataPadded }}"
|
||||||
|
echo "FullBuildMetaData: ${{ steps.gitversion.outputs.fullBuildMetaData }}"
|
||||||
|
echo "MajorMinorPatch: ${{ steps.gitversion.outputs.majorMinorPatch }}"
|
||||||
|
echo "SemVer: ${{ steps.gitversion.outputs.semVer }}"
|
||||||
|
echo "AssemblySemVer: ${{ steps.gitversion.outputs.assemblySemVer }}"
|
||||||
|
echo "AssemblySemFileVer: ${{ steps.gitversion.outputs.assemblySemFileVer }}"
|
||||||
|
echo "FullSemVer: ${{ steps.gitversion.outputs.fullSemVer }}"
|
||||||
|
echo "InformationalVersion: ${{ steps.gitversion.outputs.informationalVersion }}"
|
||||||
|
|
||||||
- name: Install JDK11 for Sonar Scanner
|
- name: Install JDK11 for Sonar Scanner
|
||||||
uses: actions/setup-java@v1
|
uses: actions/setup-java@v1
|
||||||
with:
|
with:
|
||||||
@@ -45,11 +77,11 @@ jobs:
|
|||||||
/d:sonar.cs.dotcover.reportsPaths=./coveragereport.html
|
/d:sonar.cs.dotcover.reportsPaths=./coveragereport.html
|
||||||
|
|
||||||
- name: Build Core QuanTAlib DLL
|
- name: Build Core QuanTAlib DLL
|
||||||
run: dotnet build ./Calculations/Calculations.csproj --verbosity minimal --configuration Release --nologo
|
run: dotnet build ./Calculations/Calculations.csproj --verbosity detailed --configuration Release --nologo
|
||||||
- name: Build Indicators DLL
|
- name: Build Indicators DLL
|
||||||
run: dotnet build ./Indicators/Indicators.csproj --verbosity minimal --configuration Release --nologo
|
run: dotnet build ./Indicators/Indicators.csproj --verbosity detailed --configuration Release --nologo
|
||||||
- name: Build Strategies DLL
|
- name: Build Strategies DLL
|
||||||
run: dotnet build ./Strategies/Strategies.csproj --verbosity minimal --configuration Release --nologo
|
run: dotnet build ./Strategies/Strategies.csproj --verbosity detailed --configuration Release --nologo
|
||||||
|
|
||||||
- name: DotCover Test XML
|
- name: DotCover Test XML
|
||||||
run: dotnet dotcover test ./Tests/Tests.csproj --verbosity minimal --dcReportType=DetailedXML --dcoutput=./coveragereport.xml
|
run: dotnet dotcover test ./Tests/Tests.csproj --verbosity minimal --dcReportType=DetailedXML --dcoutput=./coveragereport.xml
|
||||||
@@ -72,14 +104,19 @@ jobs:
|
|||||||
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
|
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
|
||||||
coverage-reports: ./coveragereport.xml
|
coverage-reports: ./coveragereport.xml
|
||||||
|
|
||||||
- name: Release
|
|
||||||
uses: marvinpinto/action-automatic-releases@latest
|
|
||||||
|
- name: Publish dev release assets
|
||||||
|
if: ${{ github.ref == 'refs/heads/dev' }}
|
||||||
|
uses: SourceSprint/upload-multiple-releases@1.0.7
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
|
||||||
automatic_release_tag: latest
|
|
||||||
prerelease: true
|
prerelease: true
|
||||||
title: "Latest Build"
|
overwrite: true
|
||||||
files: |
|
release_name: ${{ steps.gitversion.outputs.SemVer }}
|
||||||
|
tag_name: latest
|
||||||
|
release_config: |
|
||||||
.\Calculations\bin\Release\net6.0\QuanTAlib.dll
|
.\Calculations\bin\Release\net6.0\QuanTAlib.dll
|
||||||
.\Indicators\bin\Release\QuanTAlib_Indicators.dll
|
.\Indicators\bin\Release\QuanTAlib_Indicators.dll
|
||||||
.\Strategies\bin\Release\QuanTAlib_Strategies.dll
|
.\Strategies\bin\Release\QuanTAlib_Strategies.dll
|
||||||
@@ -90,6 +127,21 @@ jobs:
|
|||||||
--source https://www.myget.org/F/quantalib/api/v2/package
|
--source https://www.myget.org/F/quantalib/api/v2/package
|
||||||
--skip-duplicate
|
--skip-duplicate
|
||||||
|
|
||||||
|
- name: Publish main release assets
|
||||||
|
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: ${{ steps.gitversion.outputs.MajorMinorPatch }}
|
||||||
|
release_config: |
|
||||||
|
.\Calculations\bin\Release\net6.0\QuanTAlib.dll
|
||||||
|
.\Indicators\bin\Release\QuanTAlib_Indicators.dll
|
||||||
|
.\Strategies\bin\Release\QuanTAlib_Strategies.dll
|
||||||
|
|
||||||
- name: Push package to nuget.org
|
- name: Push package to nuget.org
|
||||||
if: ${{ github.ref == 'refs/heads/main' }}
|
if: ${{ github.ref == 'refs/heads/main' }}
|
||||||
run: dotnet nuget push '.\Calculations\bin\Release\QuanTAlib.*.nupkg'
|
run: dotnet nuget push '.\Calculations\bin\Release\QuanTAlib.*.nupkg'
|
||||||
|
|||||||
@@ -2,7 +2,6 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Title>QuanTAlib</Title>
|
<Title>QuanTAlib</Title>
|
||||||
<Version>0.1.31</Version>
|
|
||||||
<Product>Library of TA Calculations, Charts and Strategies for Quantower</Product>
|
<Product>Library of TA Calculations, Charts and Strategies for Quantower</Product>
|
||||||
<Description>Quantitative Technical Analysis Library in C# for Quantower</Description>
|
<Description>Quantitative Technical Analysis Library in C# for Quantower</Description>
|
||||||
<RepositoryType>git</RepositoryType>
|
<RepositoryType>git</RepositoryType>
|
||||||
@@ -52,6 +51,7 @@
|
|||||||
<PackageIconUrl>https://raw.githubusercontent.com/mihakralj/QuanTAlib/main/.github/QuanTAlib2.png</PackageIconUrl>
|
<PackageIconUrl>https://raw.githubusercontent.com/mihakralj/QuanTAlib/main/.github/QuanTAlib2.png</PackageIconUrl>
|
||||||
<EnforceCodeStyleInBuild>True</EnforceCodeStyleInBuild>
|
<EnforceCodeStyleInBuild>True</EnforceCodeStyleInBuild>
|
||||||
<CodeAnalysisRuleSet>..\.sonarlint\mihakralj_quantalibcsharp.ruleset</CodeAnalysisRuleSet>
|
<CodeAnalysisRuleSet>..\.sonarlint\mihakralj_quantalibcsharp.ruleset</CodeAnalysisRuleSet>
|
||||||
|
<Version />
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<AdditionalFiles Include="..\.sonarlint\mihakralj_quantalib\CSharp\SonarLint.xml" Link="SonarLint.xml" />
|
<AdditionalFiles Include="..\.sonarlint\mihakralj_quantalib\CSharp\SonarLint.xml" Link="SonarLint.xml" />
|
||||||
@@ -66,6 +66,9 @@
|
|||||||
<Visible>False</Visible>
|
<Visible>False</Visible>
|
||||||
<PackagePath></PackagePath>
|
<PackagePath></PackagePath>
|
||||||
</None>
|
</None>
|
||||||
<PackageReference Include="System.Text.Json" Version="7.0.0" />
|
<PackageReference Include="GitVersion.MsBuild" Version="5.12.0">
|
||||||
|
<PrivateAssets>all</PrivateAssets>
|
||||||
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||||
|
</PackageReference>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
||||||
@@ -7,11 +7,19 @@ branches:
|
|||||||
prevent-increment-of-merged-branch-version: true
|
prevent-increment-of-merged-branch-version: true
|
||||||
track-merge-target: false
|
track-merge-target: false
|
||||||
increment: inherit
|
increment: inherit
|
||||||
|
source-branches: [ 'develop' ]
|
||||||
|
is-release-branch: true
|
||||||
|
is-mainline: true
|
||||||
develop:
|
develop:
|
||||||
regex: ^dev$
|
regex: ^dev$
|
||||||
is-release-branch: false
|
is-release-branch: false
|
||||||
prevent-increment-of-merged-branch-version: false
|
prevent-increment-of-merged-branch-version: false
|
||||||
track-merge-target: true
|
track-merge-target: true
|
||||||
|
source-branches: []
|
||||||
|
is-release-branch: false
|
||||||
|
tracks-release-branches: true
|
||||||
|
is-mainline: false
|
||||||
|
tag: dev
|
||||||
ignore:
|
ignore:
|
||||||
sha: []
|
sha: []
|
||||||
major-version-bump-message: '\+semver:\s?(feature|major)'
|
major-version-bump-message: '\+semver:\s?(feature|major)'
|
||||||
Reference in New Issue
Block a user