Skip to content

Bump Microsoft.NET.Test.Sdk from 17.6.2 to 17.6.3 #1618

Bump Microsoft.NET.Test.Sdk from 17.6.2 to 17.6.3

Bump Microsoft.NET.Test.Sdk from 17.6.2 to 17.6.3 #1618

Workflow file for this run

name: Build and Release
on: [push]
jobs:
build:
name: Create Release
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Setup .NET 7.0.x
uses: actions/setup-dotnet@v3
with:
dotnet-version: '7.0.x'
- name: Cache NuGet Packages
uses: actions/cache@v3
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
restore-keys: |
${{ runner.os }}-nuget-
- name: Restore .NET Tools
run: dotnet tool restore
working-directory: ./Alpaca.Markets.Tests
- name: Dotnet Test (Debug)
run: dotnet dotcover test --dcXML=Configuration.xml
- name: Dotnet Build (Release)
run: dotnet build -c Release
- name: Save SDK Packages
uses: actions/upload-artifact@v3
with:
name: sdk-packages
path: |
Alpaca.Markets/bin/Release/*.nupkg
Alpaca.Markets/bin/Release/*.snupkg
- name: Save Extensions Packages
uses: actions/upload-artifact@v3
with:
name: ext-packages
path: |
Alpaca.Markets.Extensions/bin/Release/*.nupkg
Alpaca.Markets.Extensions/bin/Release/*.snupkg
- name: Send Coverage to Codacy
if: "${{env.CODACY_PROJECT_TOKEN != ''}}"
env:
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}
run: bash <(curl -Ls https://coverage.codacy.com/get.sh) report -r Alpaca.Markets.Coverage.xml
publish-sdk:
name: Publish SDK Binaries
runs-on: ubuntu-latest
needs: build
if: github.repository == 'alpacahq/alpaca-trade-api-csharp' && startsWith(github.ref, 'refs/tags/sdk')
steps:
- name: Load SDK Packages
uses: actions/download-artifact@v3
with:
name: sdk-packages
- name: Create NuGet Version
run: dotnet nuget push **.nupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_API_KEY }}
- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with:
name: SDK ${{ github.ref }}
draft: true
publish-ext:
name: Publish Extensions Binaries
runs-on: ubuntu-latest
needs: build
if: github.repository == 'alpacahq/alpaca-trade-api-csharp' && startsWith(github.ref, 'refs/tags/ext')
steps:
- name: Load Extensions Packages
uses: actions/download-artifact@v3
with:
name: ext-packages
- name: Create NuGet Version
run: dotnet nuget push **.nupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_API_KEY }}
- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with:
name: Extensions ${{ github.ref }}
draft: true