Skip to content

1.1.0

1.1.0 #12

Workflow file for this run

name: Publish Application
on:
pull_request:
types: [ closed ]
branches: [ "main" ]
jobs:
publish:
runs-on: ubuntu-22.04
steps:
- name: Checkout project
uses: actions/checkout@v4
- name: Update version record
run: sed -i -e "s/0.0.0/${{ github.event.pull_request.title }}/g" OrnaLibs.Utils.csproj
- name: Install dotnet 8
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.x
- name: Build project
run: dotnet build
- name: Set variables
id: vars
run: echo "nupkg=bin/Debug/$(ls bin/Debug | grep '\.nupkg')" >> $GITHUB_OUTPUT
- name: Publish to NuGet
run: dotnet nuget push ${{ steps.vars.outputs.nupkg }} --api-key ${{ secrets.NUGET_TOKEN }} --source https://api.nuget.org/v3/index.json