-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Forest
committed
Feb 29, 2024
1 parent
1abd9ca
commit cd41ffa
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
- 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%" |