Skip to content

MCART 0.17.0-a005

MCART 0.17.0-a005 #33

Workflow file for this run

name: "Publish MCART"
on:
release:
types:
- created
jobs:
test-publish:
runs-on: windows-latest
env:
Solution_Name: src/MCART.sln
Configuration: Release
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
6.0.x
7.0.x
- name: Create NuGet Packages
run: dotnet pack $env:Solution_Name --configuration=${{ env.Configuration }} -p:Version=${{ github.ref_name }} -p:RepositoryBranch=${{ github.ref }} -p:ContinuousIntegrationBuild=true
- name: Push packages to GitHub
run: dotnet nuget push "Build/**/*.nupkg" -k ${{ secrets.GITHUB_TOKEN }} --skip-duplicate --source "https://nuget.pkg.github.com/TheXDS/"
- name: Push packages to NuGet
run: dotnet nuget push "Build/**/*.nupkg" -k ${{ secrets.NUGET_TOKEN }} --skip-duplicate --source "https://api.nuget.org/v3/index.json"