PrimeFuncPack Generic Collections v1.0.1 #87
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: .NET | |
on: | |
push: | |
branches: [ main, dev, feature/*, fix/*, release/* ] | |
pull_request: | |
branches: [ main ] | |
release: | |
types: [ published ] | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: | | |
6.0.x | |
7.0.x | |
8.0.x | |
# Create Local NuGet Source | |
- name: Create Local NuGet Directory | |
run: mkdir ~/nuget | |
- name: Add Local Nuget Source | |
run: dotnet nuget add source ~/nuget | |
# EqualityComparers | |
- name: Restore EqualityComparers | |
run: dotnet restore ./src/*/*/Collections.Generic.EqualityComparers.csproj | |
- name: Build EqualityComparers | |
run: dotnet build ./src/*/*/Collections.Generic.EqualityComparers.csproj --no-restore -c Release | |
- name: Pack EqualityComparers | |
run: dotnet pack ./src/*/*/Collections.Generic.EqualityComparers.csproj --no-restore -o ~/nuget -c Release | |
- name: Restore EqualityComparers.Tests | |
run: dotnet restore ./src/*/*/Collections.Generic.EqualityComparers.Tests.csproj | |
- name: Test EqualityComparers.Tests | |
run: dotnet test ./src/*/*/Collections.Generic.EqualityComparers.Tests.csproj --no-restore -c Release | |
# Collections | |
- name: Restore Collections | |
run: dotnet restore ./src/*/*/Collections.Generic.csproj | |
- name: Build Collections | |
run: dotnet build ./src/*/*/Collections.Generic.csproj --no-restore -c Release | |
- name: Pack Collections | |
run: dotnet pack ./src/*/*/Collections.Generic.csproj --no-restore -o ~/nuget -c Release | |
# Push | |
- name: Push Packages | |
if: ${{ github.event_name == 'release' }} | |
run: dotnet nuget push "../../../nuget/*.nupkg" -s https://api.nuget.org/v3/index.json -k ${{ secrets.NuGetSourcePassword }} --skip-duplicate |