Skip to content

Add CLI release pipeline #13

Add CLI release pipeline

Add CLI release pipeline #13

Workflow file for this run

name: CLI Tool
on:
workflow_dispatch:
push:
branches:
- '*'
pull_request:
branches:
- '*'
env:
VERSION: ${{ github.run_number }}
jobs:
build:
runs-on: windows-2022
steps:
- uses: actions/checkout@v4
- name: Package CLI 6
run: dotnet pack src\GUI\efcpt.6\efcpt.6.csproj -p:PackageVersion=6.1.${{ env.VERSION }}-nightly -p:InformationalVersion=6.1.${{ env.VERSION }}-nightly
- name: Package CLI 7
run: dotnet pack src\GUI\efcpt.7\efcpt.7.csproj -p:PackageVersion=7.1.${{ env.VERSION }}-nightly -p:InformationalVersion=7.1.${{ env.VERSION }}-nightly
- name: Package CLI 8
run: dotnet pack src\GUI\efcpt.8\efcpt.8.csproj -p:PackageVersion=8.1.${{ env.VERSION }}-nightly -p:InformationalVersion=8.1.${{ env.VERSION }}-nightly
- name: Core test project
run: dotnet test src\GUI\NUnitTestCore\NUnitTestCore.csproj
continue-on-error: false
- name: Publish NuGet
if: startsWith(github.ref, 'refs/heads/master')
run: dotnet nuget push **\*.nupkg --source 'https://api.nuget.org/v3/index.json' --api-key ${{ secrets.NUGET }} --skip-duplicate