mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-24 13:38:05 +00:00
Add .github/workflows/main_automation.yml
This commit is contained in:
@@ -104,20 +104,7 @@ jobs:
|
|||||||
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
|
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
|
||||||
coverage-reports: ./coveragereport.xml
|
coverage-reports: ./coveragereport.xml
|
||||||
|
|
||||||
- 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: latest stable
|
|
||||||
tag_name: ${{ steps.gitversion.outputs.fullSemVer }}
|
|
||||||
release_config: |
|
|
||||||
.\Calculations\bin\Release\net6.0\QuanTAlib.dll
|
|
||||||
.\Indicators\bin\Release\QuanTAlib_Indicators.dll
|
|
||||||
.\Strategies\bin\Release\QuanTAlib_Strategies.dll
|
|
||||||
|
|
||||||
- name: Publish dev release assets
|
- name: Publish dev release assets
|
||||||
if: ${{ github.ref == 'refs/heads/dev' }}
|
if: ${{ github.ref == 'refs/heads/dev' }}
|
||||||
@@ -127,8 +114,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
prerelease: true
|
prerelease: true
|
||||||
overwrite: true
|
overwrite: true
|
||||||
release_name: latest pre-release
|
release_name: ${{ steps.gitversion.outputs.SemVer }}
|
||||||
tag_name: ${{ steps.gitversion.outputs.fullSemVer }}
|
tag_name: latest
|
||||||
release_config: |
|
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
|
||||||
@@ -140,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'
|
||||||
|
|||||||
Reference in New Issue
Block a user