Skip to content

1.4.1

1.4.1 #63

Workflow file for this run

name: Confix.Tool.Release
on:
release:
types: [ published ]
jobs:
release:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./src/Confix.Tool
env:
VERSION: ${{ github.event.release.tag_name }}
NUGET_TOKEN: ${{ secrets.NUGET_KEY }}
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
7.0.x
8.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release /p:Version=${VERSION}
- name: Pack
run: dotnet pack --configuration Release /p:Version=${VERSION} --output .
- name: Push Library
run: dotnet nuget push Confix.Library.${VERSION}.nupkg --source https://api.nuget.org/v3/index.json --api-key ${NUGET_TOKEN}
- name: Push Nuke
run: dotnet nuget push Confix.Nuke.${VERSION}.nupkg --source https://api.nuget.org/v3/index.json --api-key ${NUGET_TOKEN}
- name: Push Tool
run: dotnet nuget push Confix.${VERSION}.nupkg --source https://api.nuget.org/v3/index.json --api-key ${NUGET_TOKEN}