Skip to content

Commit

Permalink
Add nuget yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
Forest committed Feb 29, 2024
1 parent 1abd9ca commit 41ef64e
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/nuget.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Publish to Nuget

on:
workflow_dispatch:
inputs:
version:
required: true
type: string

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ windows-latest ]

steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 7.x
env:
NUGET_KEY: ${{ secrets.NUGET_API_KEY }}
- name: Pack
run: dotnet pack /p:Version=${{ inputs.version }} --output .
- name: Push
run: dotnet nuget push innersloth.Hazel-Networking.${{ inputs.version }}.nupkg --source https://api.nuget.org/v3/index.json --api-key "%NUGET_KEY%"

0 comments on commit 41ef64e

Please sign in to comment.