Skip to content

Add encrypt to console. #7

Add encrypt to console.

Add encrypt to console. #7

Workflow file for this run

# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: .NET Build and Publish NuGet
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
- name: Restore dependencies
run: dotnet restore src/Security.sln
- name: Build
run: dotnet build --no-restore src/Security.sln --configuration Release
- name: Test
run: dotnet test --no-build --verbosity normal src/Security.sln --configuration Release
- name: Publish the package to NuGet
run: dotnet nuget push src/Security/bin/Release/*.nupkg -k ${{secrets.NUGET_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate
- name: Publish the package to GitHub
run: dotnet nuget push src/Security/bin/Release/*.nupkg -k ${{secrets.GH_KEY}} -s https://nuget.pkg.github.com/stevehjohn/index.json --skip-duplicate