Skip to content

lower/upper and searchvalues support for alphabet #17

lower/upper and searchvalues support for alphabet

lower/upper and searchvalues support for alphabet #17

Workflow file for this run

name: NuGet
on:
push:
branches:
- main
paths-ignore:
- docs/**
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 9.x
include-prerelease: true
- name: Setup NuGet
uses: NuGet/setup-nuget@v1
- name: Clean
run: dotnet clean
- name: NuGet clear cache
run: nuget locals all -clear
- name: Restore tools
run: dotnet tool restore
#- name: Check format
# run: dotnet format --verify-no-changes
- name: Restore dependencies
run: dotnet restore
- name: Check dependencies for deprecated packages
run: dotnet list package --deprecated
- name: Check dependencies for vulnerable packages
run: dotnet list package --vulnerable --include-transitive
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal --collect "Code coverage"
- name: Pack
working-directory: src/Science.Cryptography.Ciphers
run: dotnet pack --configuration Release --version-suffix "preview.${{ github.run_number }}" -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg
- name: Pack
working-directory: src/Science.Cryptography.Ciphers.Specialized
run: dotnet pack --configuration Release --version-suffix "preview.${{ github.run_number }}" -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg
- name: Pack
working-directory: src/Science.Cryptography.Ciphers.Analysis
run: dotnet pack --configuration Release --version-suffix "preview.${{ github.run_number }}" -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg
- name: Upload artifact
uses: actions/upload-artifact@v3
if: always()
with:
name: packages
path: src/Science.Cryptography.*/bin/Release/Science.Cryptography.*.nupkg
- name: NuGet Authenticate
run: nuget setapikey "${{ secrets.NUGET_API_KEY }}"
- name: NuGet Push
run: nuget push src/Science.Cryptography.*/bin/Release/Science.Cryptography.*.nupkg -Source https://api.nuget.org/v3/index.json
if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request'