Skip to content

Update publish pipeline #59

Update publish pipeline

Update publish pipeline #59

Workflow file for this run

name: .NET Publish
on:
push:
tags:
- 'v*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8
- name: Build and Pack
run: dotnet build DialogHost.Avalonia --configuration Release
- name: Publish to Nuget
run: dotnet nuget push "DialogHost.Avalonia/bin/Release/*.nupkg" --api-key ${{secrets.NUGET_KEY}} --source https://api.nuget.org/v3/index.json --skip-duplicate
- name: Publish to GitHub Packages
run: dotnet nuget push "DialogHost.Avalonia/bin/Release/*.nupkg" --api-key ${{secrets.GITHUB_TOKEN}} --source https://nuget.pkg.github.com/AvaloniaUtils/index.json --skip-duplicate