Skip to content

Commit

Permalink
Create nuget deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
ninjanye authored Jul 4, 2024
1 parent e089112 commit b63e998
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Publish SearchExtensions package to NuGet

on:
push:
branches:
- main
tags:
- "v[0-9]+.[0-9]+.[0-9]+"

jobs:
build-and-publish:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Go to project directory
run: cd NinjaNye.SearchExtensions

- name: Restore dependencies
run: dotnet restore

- name: Build
run: dotnet build --configuration Release --no-restore

- name: Test
run: dotnet test --no-restore --verbosity normal

# - name: Pack
# run: dotnet pack --configuration Release --no-build --output ../../nupkgs
#
# - name: Push to NuGet
# run: dotnet nuget push ../../nupkgs/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{secrets.NUGET_API_KEY}} --skip-duplicate
# if: startsWith(github.ref, 'refs/tags/v')

0 comments on commit b63e998

Please sign in to comment.