Deploy SafetyFirst to NuGet #5
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
name: Deploy SafetyFirst to NuGet | |
on: | |
workflow_dispatch: | |
env: | |
# Official NuGet Feed settings | |
NUGET_FEED: https://api.nuget.org/v3/index.json | |
NUGET_KEY: ${{ secrets.NUGET_KEY }} | |
jobs: | |
deploy-to-nuget: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up .net | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: | | |
8.0 | |
- name: Build | |
shell: bash | |
run: | | |
dotnet pack -c Release --include-symbols --include-source -o nugets | |
- name: Deploy | |
shell: bash | |
run: | | |
dotnet nuget push ./nugets/*.nupkg --source $NUGET_FEED --skip-duplicate --api-key $NUGET_KEY | |