Merge pull request #16 from mikeyoshino/2023/08/29/IconUpdate #8
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: Publish to NuGet | |
on: | |
push: | |
branches: | |
- main # Trigger on push to the main branch | |
workflow_dispatch: # Allow manual kick off | |
jobs: | |
publish: | |
runs-on: ubuntu-latest # Use a Linux runner | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Setup .NET 6 | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: '6.0.x' # Use .NET 6 | |
- name: Set NuGet Key and Publish to NuGet | |
run: | | |
$Nuget_Key = "${{ secrets.PUBLISH_TO_NUGET_ORG }}" | |
./scripts/publish.ps1 | |
shell: pwsh # Use PowerShell Core | |