Skip to content

Update release.yml

Update release.yml #1

Workflow file for this run

name: Release Package
# This action will start when a correctly formatted tag is pushed (e.g. 0.1.0)
on:
push:
tags:
- "*"
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 6.0.x
- name: Build project
run: dotnet build src\Umbraco.Community.Sustainability\Umbraco.Community.Sustainability.csproj --configuration Release
- name: Push to NuGet
run: dotnet nuget push **\*.nupkg --api-key ${{secrets.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json