Merge pull request #1 from absmartly/feature/add-custom-fields-support #1
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 Nuget | |
on: | |
push: | |
branches: | |
- "main" | |
tags: | |
- v* | |
jobs: | |
build: | |
runs-on: windows-2019 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: '5.0.x' | |
dotnet-quality: 'preview' | |
env: | |
NUGET_AUTH_TOKEN: ${{secrets.NUGET_AUTH_TOKEN}} | |
- name: Run Build | |
run: dotnet build src/ABSmartly.Sdk | |
env: | |
NUGET_AUTH_TOKEN: ${{secrets.NUGET_AUTH_TOKEN}} | |
- name: Run Release | |
run: dotnet nuget push src/ABSmartly.Sdk/bin/Debug/ --api-key $NUGET_AUTH_TOKEN --source https://api.nuget.org/v3/index.json | |
env: | |
NUGET_AUTH_TOKEN: ${{secrets.NUGET_AUTH_TOKEN}} |