mirror of
https://github.com/Stone-Red-Code/CuteUtils.git
synced 2026-09-04 00:46:11 +02:00
Merge pull request #2 from Stone-Red-Code/Stone-Red-Code-patch-1
Create deploy-nuget.yml
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
name: Upload nuget package
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "main" ]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
packages: write
|
||||
contents: read
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-dotnet@v4
|
||||
with:
|
||||
dotnet-version: '8.0.x' # SDK Version to use.
|
||||
source-url: https://nuget.pkg.github.com/Stone-Red-Code/index.json
|
||||
env:
|
||||
NUGET_AUTH_TOKEN: ${{secrets.NUGET_TOKEN}}
|
||||
- run: dotnet build --configuration Release src/CuteUtils
|
||||
- name: Create the package
|
||||
run: dotnet pack --configuration Release src/CuteUtils
|
||||
- name: Publish the package to nuget.org
|
||||
run: dotnet nuget push src/CuteUtils/bin/Release/*.nupkg -k $NUGET_AUTH_TOKEN -s https://api.nuget.org/v3/index.json
|
||||
env:
|
||||
NUGET_AUTH_TOKEN: ${{secrets.NUGET_TOKEN}}
|
||||
Reference in New Issue
Block a user