Skip to content

Commit

Permalink
Create publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dombrovsky committed May 6, 2023
1 parent 026ad02 commit 4cc1f02
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# 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

on: [workflow_dispatch]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal
- name: Publish
run: nuget push **\*.nupkg -Source 'https://api.nuget.org/v3/index.json' -ApiKey ${{secrets.NUGET_API_KEY}}
4 changes: 2 additions & 2 deletions MutableOptions/MutableOptions.sln → MutableOptions.sln
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.3.32901.215
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MutableOptions", "MutableOptions.csproj", "{7B846A17-1146-4BF1-9E01-81AAFB097A02}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MutableOptions", "MutableOptions\MutableOptions.csproj", "{7B846A17-1146-4BF1-9E01-81AAFB097A02}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MutableOptions.Tests", "..\MutableOptions.Tests\MutableOptions.Tests.csproj", "{2CD0B616-38CC-456D-9C7E-A992C6FEB63F}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MutableOptions.Tests", "MutableOptions.Tests\MutableOptions.Tests.csproj", "{2CD0B616-38CC-456D-9C7E-A992C6FEB63F}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down

0 comments on commit 4cc1f02

Please sign in to comment.