Skip to content

Publish package

Publish package #24

Workflow file for this run

name: Publish package
on:
release:
types:
- created
jobs:
publish:
runs-on: windows-latest
steps:
- name: Checkout repository ⬇️☁️
uses: actions/checkout@v2
- name: Setup .NET 🛠
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- name: Restore dependencies 🔁
run: dotnet restore source/Lucid/Lucid.csproj
- name: Build 🚧
run: dotnet build source/Lucid/Lucid.csproj --configuration Release --no-restore
- name: Pack 📦
run: dotnet pack source/Lucid/Lucid.csproj --configuration Release /p:Version=${{ github.event.release.tag_name }} --no-build --output ./artifacts
- name: Publish to NuGet 📦➡️☁️
run: dotnet nuget push **/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source "https://api.nuget.org/v3/index.json"