Publish SLCommandScript.Core NuGet package #11
Workflow file for this run
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 SLCommandScript.Core NuGet package | |
on: | |
release: | |
types: [published] | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Download package | |
id: download | |
continue-on-error: true | |
uses: robinraju/release-downloader@v1 | |
with: | |
fileName: '*.nupkg' | |
tag: ${{ github.event.release.tag_name }} | |
- name: Setup .NET | |
if: steps.download.outcome == 'success' | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 8.0.x | |
- name: Publish package | |
if: steps.download.outcome == 'success' | |
run: | | |
dotnet nuget push ${{ fromJson(steps.download.outputs.downloaded_files)[0] }} --api-key ${{ secrets.GITHUB_TOKEN }} --source https://nuget.pkg.github.com/Pogromca-SCP/index.json --skip-duplicate | |
dotnet nuget push ${{ fromJson(steps.download.outputs.downloaded_files)[0] }} --api-key ${{ secrets.NUGET_TOKEN }} --source https://api.nuget.org/v3/index.json --skip-duplicate |