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 f30e956
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/nuget.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
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:
- name: Test
env:
NUGET_KEY: ${{ secrets.NUGET_API_KEY }}
run: echo %NUGET_KEY%


# - uses: actions/checkout@v2
# - name: Setup .NET
# uses: actions/setup-dotnet@v1
# with:
# dotnet-version: 7.x
# - name: Pack
# run: dotnet pack /p:Version=${{ inputs.version }} --output .
# - name: Push
# env:
# NUGET_KEY: ${{ secrets.NUGET_API_KEY }}
# 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 f30e956

Please sign in to comment.