Skip to content

Update release pipeline #2

Update release pipeline

Update release pipeline #2

Workflow file for this run

name: release
on:
push:
tags:
- "v*"
jobs:
build:
runs-on: ubuntu-latest
env:
DOTNET_NOLOGO: true
NUGET_API_KEY: ${{secrets.NUGET_API_KEY}}
steps:
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.1xx
- name: Checkout
uses: actions/checkout@v4
- name: Build and Release
run: |
dotnet restore --verbosity minimal src/Arborist.sln
dotnet build --no-restore -c Release src/Arborist.sln
dotnet test --no-restore src/Arborist.sln
dotnet pack -o ./nuget src/Arborist.sln
dotnet nuget push -s https://api.nuget.org/v3/index.json -k "$NUGET_API_KEY" ./nuget/*.nupkg