Skip to content

Publish Packages

Publish Packages #64

Workflow file for this run

#https://lukelowrey.com/use-github-actions-to-publish-nuget-packages/
name: Publish Packages
on:
# push:
# branches: [ master ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
env:
HUSKY: 0
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup .NET 9
uses: actions/setup-dotnet@v3
with:
dotnet-version: 9.0.x
- name: Print information
run: |
ls -la
dotnet --info
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Test
run: dotnet test --configuration Release --no-build --verbosity normal
- name: Publish Husky
uses: alirezanet/[email protected]
with:
PROJECT_FILE_PATH: src/Husky/Husky.csproj
INCLUDE_SYMBOLS: true
NUGET_KEY: ${{secrets.NUGET_API_KEY}}