Skip to content

MCART 0.17.3-alpha.8 #48

MCART 0.17.3-alpha.8

MCART 0.17.3-alpha.8 #48

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@v4
with:
dotnet-version: |
6.0.x
8.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:RepositoryCommit=${{ github.sha }} -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"