Files
StoneRed.NetificationApi/.github/workflows/publish-nuget.yml
T
2024-03-04 21:07:38 +01:00

27 lines
844 B
YAML

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-Software/index.json
env:
NUGET_AUTH_TOKEN: ${{secrets.GH_TOKEN}}
- run: dotnet build --configuration Release src/StoneRed.NetificationApi
- name: Create the package
run: dotnet pack --configuration Release src/StoneRed.NetificationApi
- name: Publish the package to nuget.org
run: dotnet nuget push src/StoneRed.NetificationApi/bin/Release/*.nupkg -k $NUGET_TOKEN -s https://api.nuget.org/v3/index.json