Skip to content

add readme

add readme #38

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
env:
BUILD_CONFIG: 'Release'
SOLUTION: 'ConstructorGenerator.sln'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
#- name: Get Build Version
# run: |
# Import-Module .\build\GetBuildVersion.psm1
# Write-Host $Env:GITHUB_REF
# $version = GetBuildVersion -VersionString $Env:GITHUB_REF
# echo "BUILD_VERSION=$version" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
# shell: pwsh
- name: Setup NuGet
uses: NuGet/setup-nuget@v1.0.5
- name: Restore dependencies
run: nuget restore $SOLUTION
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- name: Build
run: dotnet build $SOLUTION --configuration $BUILD_CONFIG --no-restore
- name: Run tests
run: dotnet test /p:Configuration=$BUILD_CONFIG --no-restore --no-build --verbosity normal
- name: Publish
if: startsWith(github.ref, 'refs/heads/master')
run: nuget push **\*.nupkg -Source 'https://api.nuget.org/v3/index.json' -ApiKey ${{secrets.NUGET_API_KEY}}