Skip to content

Fixes for python and typescript (#34) #105

Fixes for python and typescript (#34)

Fixes for python and typescript (#34) #105

Workflow file for this run

name: Build and publish
on:
push:
branches: [main]
pull_request:
branches: [main]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v1
- name: Setup .NET Core @ Latest
uses: actions/setup-dotnet@v1
with:
dotnet-version: "8.0.x"
include-prerelease: false
- name: Build solution and generate NuGet package
run: dotnet build -c Release
- name: Run dotnet pack
run: dotnet pack -c Release
- name: Push generated package to NuGet registry
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
run: dotnet nuget push src/SdkGenerator/bin/Release/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{secrets.NUGET_API_KEY}}