Fixes for python and typescript (#34) #105
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}} |