Release 1.0.3 (#35) #9
Workflow file for this run
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: Publish to NuGet | |
on: | |
push: | |
tags: | |
- 'v*' | |
branches: | |
- '*/Fix-nuget-publishing' | |
jobs: | |
build: | |
runs-on: windows-latest | |
name: Update NuGet package | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v1 | |
- name: Install NET 6 | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: '6.0.201' | |
- name: Install .NET 3 | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: '3.1.100' | |
- name: Build solution and generate NuGet package | |
working-directory: src/AasCore.Aas3_0 | |
run: dotnet pack -c Release -o out | |
- name: Push generated package | |
working-directory: src/AasCore.Aas3_0 | |
env: | |
NUGET_AUTH_TOKEN: ${{secrets.NUGET_API_KEY}} | |
run: dotnet nuget push out\*.nupkg --skip-duplicate --no-symbols --source https://api.nuget.org/v3/index.json -k $env:NUGET_AUTH_TOKEN |