v0.11.2 #242
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: Nuget Release (on Tagging) | |
on: | |
release: | |
types: | |
- created | |
tags: | |
- "\\d+\\.\\d+\\.\\d+" | |
jobs: | |
pushrelease: | |
runs-on: windows-latest | |
env: | |
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 8.0.100 | |
- name: Build/Check for compile errors (dotnet build) | |
run: dotnet build --configuration Release | |
- name: Run Unit Tests (dotnet test) | |
run: dotnet test --configuration Release | |
- name: Create Package (dotnet pack) | |
run: | | |
dotnet pack ./BO4E.Extensions/BO4E.Extensions.csproj --configuration Release --output packages -property:VersionPrefix=${{github.event.release.tag_name}} | |
dotnet pack ./BO4E.Reporting/BO4E.Reporting.csproj --configuration Release --output packages -property:VersionPrefix=${{github.event.release.tag_name}} | |
dotnet pack ./BO4E/BO4E.csproj --configuration Release --output packages -property:VersionPrefix=${{github.event.release.tag_name}} | |
- name: Setup Nuget.exe | |
uses: warrenbuckley/Setup-Nuget@v1 | |
- name: Nuget push | |
run: | | |
nuget setApiKey ${{ secrets.BO4E_NUGET_ORG_PUSH_TOKEN }} | |
nuget push .\packages\*.nupkg -Source https://api.nuget.org/v3/index.json -SkipDuplicate -NoSymbols |