Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Burrows committed Jan 24, 2024
2 parents fde9445 + 837638d commit b2a0a7a
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# 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:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

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 NuGet
uses: brandedoutcast/[email protected]
with:
# Filepath of the project to be packaged, relative to root of repository
PROJECT_FILE_PATH: Unfurl.Net/Unfurl.Net.csproj
# NuGet package id, used for version detection & defaults to project name
#PACKAGE_NAME: # optiona
# Filepath with version info, relative to root of repository & defaults to PROJECT_FILE_PATH
#VERSION_FILE_PATH: # optional
# Regex pattern to extract version info in a capturing group
#VERSION_REGEX: # optional, default is ^\s*<Version>(.*)<\/Version>\s*$
# Useful with external providers like Nerdbank.GitVersioning, ignores VERSION_FILE_PATH & VERSION_REGEX
#VERSION_STATIC: # optional
# Flag to toggle git tagging, enabled by default
#TAG_COMMIT: # optional, default is true
# Format of the git tag, [*] gets replaced with actual version
#TAG_FORMAT: # optional, default is v*
# API key to authenticate with NuGet server
NUGET_KEY: ${{ secrets.NUGETAPIKEY }}
# NuGet server uri hosting the packages, defaults to https://api.nuget.org
#NUGET_SOURCE: # optional, default is https://api.nuget.org
# Flag to toggle pushing symbols along with nuget package to the server, disabled by default
#INCLUDE_SYMBOLS: # optional

0 comments on commit b2a0a7a

Please sign in to comment.