package version changed from 0.2.0 to 0.3.0 #3
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 package to NuGet gallery | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
publish: | |
name: Publish NuGet package | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis | |
- name: Build solution | |
shell: bash | |
run : | | |
dotnet build -c Release | |
- name: Test solution | |
shell: bash | |
run : | | |
dotnet test | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: InterAppConnector ${{github.ref_name}} | |
path: | | |
src/InterAppConnector/bin/Release/*.nupkg | |
- name: Publish Package | |
shell: bash | |
env: | |
NUGET_TOKEN: ${{ secrets.NUGET_TOKEN }} | |
run : | | |
nuget push src/InterAppConnector/bin/Release/*.nupkg -ApiKey "$NUGET_TOKEN" -Source https://api.nuget.org/v3/index.json | |